Package: menu
Severity: wishlist

Hi,

ktsuss is a GTK application to gain root, a bit like gksu but without gnome
dependencies.

It'd be nice to have it included in su-to-root.

Attached patch should work for this.

Cheers,
--
Yves-Alexis


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff --git a/scripts/su-to-root b/scripts/su-to-root
index 8cd5be1..c15611b 100755
--- a/scripts/su-to-root
+++ b/scripts/su-to-root
@@ -81,6 +81,15 @@ else
     done;;
   X11)
     if test -z "$SU_TO_ROOT_X"; then
+      if which ktsuss >/dev/null 2>&1 ; then
+        SU_TO_ROOT_X=ktsuss
+        if test "X$KDE_FULL_SESSION" = "Xtrue" ; then
+          if which kdesu >/dev/null 2>&1 ; then
+            SU_TO_ROOT_X=kdesu
+          elif test -x /usr/lib/kde4/libexec/kdesu ; then
+            SU_TO_ROOT_X=kde4su
+          fi;
+        fi;
       if which gksu >/dev/null 2>&1 ; then
         SU_TO_ROOT_X=gksu
         if test "X$KDE_FULL_SESSION" = "Xtrue" ; then
@@ -101,6 +110,7 @@ else
       fi
     fi
     case $SU_TO_ROOT_X in
+      ktsuss) ktsuss -u "$PRIV" "$COMMAND";;
       gksu) gksu -u "$PRIV" "$COMMAND";;
       kdesu) kdesu -u "$PRIV" "$COMMAND";;
       kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" "$COMMAND";;

Reply via email to