25 lines
1010 B
Diff
25 lines
1010 B
Diff
Index: zenmap/install_scripts/unix/su-to-zenmap.sh
|
|
===================================================================
|
|
--- zenmap/install_scripts/unix/su-to-zenmap.sh.orig 2012-08-19 21:11:06.000000000 +0100
|
|
+++ zenmap/install_scripts/unix/su-to-zenmap.sh 2012-12-02 11:48:38.000000000 +0000
|
|
@@ -13,8 +13,8 @@ if test "$euid" = "$privid"; then
|
|
$COMMAND
|
|
else
|
|
if test -z "$SU_TO_ROOT_X"; then
|
|
- if which gksu >/dev/null 2>&1 ; then
|
|
- SU_TO_ROOT_X=gksu
|
|
+ if which gnomesu >/dev/null 2>&1 ; then
|
|
+ SU_TO_ROOT_X=gnomesu
|
|
if test "X$KDE_FULL_SESSION" = "Xtrue" ; then
|
|
if which kdesu >/dev/null 2>&1 ; then
|
|
SU_TO_ROOT_X=kdesu
|
|
@@ -39,7 +39,7 @@ else
|
|
fi
|
|
fi
|
|
case $SU_TO_ROOT_X in
|
|
- gksu) gksu -u "$PRIV" "$COMMAND";;
|
|
+ gnomesu) gnomesu -u "$PRIV" -c "$COMMAND";;
|
|
kdesu) kdesu -u "$PRIV" -c "$COMMAND";;
|
|
kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" -c "$COMMAND";;
|
|
ktsuss) ktsuss -u "$PRIV" "$COMMAND";;
|