Use gksudo, if available, in gparted.desktop

If gksu was installed on a KDE system (tested with kubuntu 12.04 LTS),
then gksu would prompt for the password three times and always fail to
load gparted.  In a prior version of kubuntu 8.04 LTS, gksu would
properly invoke gparted from the "K --> System --> GParted" menu
entry.

Since gksudo also works on KDE (and kubuntu 12.04 LTS), add gksudo to
the root privilege invocation search list ahead of gksu.

Note that gksu has been kept for backwards compatibility with systems
that provide only gksu and not gksudo.

Related to Bug #687813 - Use kdesudo on KDE, as gksu is not
                         installed by default
This commit is contained in:
Curtis Gedak 2012-11-06 16:21:36 -07:00 committed by Mike Fleetwood
parent ec4a2ac09b
commit 88a2939880
2 changed files with 7 additions and 4 deletions

9
README
View file

@ -184,10 +184,13 @@ These commands include:
{filemanager} - used in attempt data rescue to display discovered
file systems. (e.g., nautilus, pcmanfm)
hal-lock - used to prevent automounting of file systems
gksu - used to acquire root privileges in .desktop file,
gksudo - 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
gksu - alternatively used to acquire root privileges in .desktop
file if gksu not available, but only if available when
gparted source is configured.
kdesudo - alternatively used to acquire root privileges in .desktop
file if gksudo and 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

View file

@ -19,7 +19,7 @@ AM_PROG_LIBTOOL
dnl======================
dnl checks for other programs
dnl======================
AC_CHECK_PROGS([GKSUPROG], [gksu kdesudo], [])
AC_CHECK_PROGS([GKSUPROG], [gksudo gksu kdesudo], [])
dnl======================