File su-to-zenmap.patch of Package nmap
25
1
Index: zenmap/install_scripts/unix/su-to-zenmap.sh
2
===================================================================
3
--- zenmap/install_scripts/unix/su-to-zenmap.sh.orig 2012-08-19 21:11:06.000000000 +0100
4
+++ zenmap/install_scripts/unix/su-to-zenmap.sh 2012-12-02 11:48:38.000000000 +0000
5
6
$COMMAND
7
else
8
if test -z "$SU_TO_ROOT_X"; then
9
- if which gksu >/dev/null 2>&1 ; then
10
- SU_TO_ROOT_X=gksu
11
+ if which gnomesu >/dev/null 2>&1 ; then
12
+ SU_TO_ROOT_X=gnomesu
13
if test "X$KDE_FULL_SESSION" = "Xtrue" ; then
14
if which kdesu >/dev/null 2>&1 ; then
15
SU_TO_ROOT_X=kdesu
16
17
fi
18
fi
19
case $SU_TO_ROOT_X in
20
- gksu) gksu -u "$PRIV" "$COMMAND";;
21
+ gnomesu) gnomesu -u "$PRIV" -c "$COMMAND";;
22
kdesu) kdesu -u "$PRIV" -c "$COMMAND";;
23
kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" -c "$COMMAND";;
24
ktsuss) ktsuss -u "$PRIV" "$COMMAND";;
25