[gparted] Use kdesudo in gparted.desktop when gksu is not installed (#687813)



commit ec4a2ac09b28b0db2acea02fb314d6be73909e4b
Author: Curtis Gedak <gedakc gmail com>
Date:   Tue Nov 6 15:30:47 2012 -0700

    Use kdesudo in gparted.desktop when gksu is not installed (#687813)
    
    Normally gksu is not installed by default on KDE systems.  When
    compiling and installing gparted on a KDE system without gksu, the
    desktop menu entry would try to run gparted as the user, and not with
    root privileges.
    
    To fix this, add kdesudo to the search list of root privilege
    invocation programs.
    
    Closes Bug #687813 - Use kdesudo on KDE, as gksu is not installed by
                         default

 README       |    3 +++
 configure.in |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/README b/README
index 3b21d16..5122c6a 100644
--- a/README
+++ b/README
@@ -186,6 +186,9 @@ These commands include:
    hal-lock      - used to prevent automounting of file systems
    gksu          - used to acquire root privileges in .desktop file,
                    but only if available when gparted source is configured.
+   kdesudo       - also used to acquire root privileges in .desktop
+                   file if gksu not available, but only if available
+                   when gparted source is configured.
    udevinfo      - used in dmraid to query udev name
    udevadm       - used in dmraid to query udev name
    yelp          - used to display help manual
diff --git a/configure.in b/configure.in
index 305222e..91dacb1 100644
--- a/configure.in
+++ b/configure.in
@@ -19,7 +19,7 @@ AM_PROG_LIBTOOL
 dnl======================
 dnl checks for other programs 
 dnl======================
-AC_CHECK_PROG([GKSUPROG], [gksu], [gksu])
+AC_CHECK_PROGS([GKSUPROG], [gksu kdesudo], [])
 
 
 dnl======================



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]