[gparted] Use gksudo, if available, in gparted.desktop
- From: Mike Fleetwood <mfleetwo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Use gksudo, if available, in gparted.desktop
- Date: Sun, 11 Nov 2012 12:21:20 +0000 (UTC)
commit 88a293988027fdc351404ac50c76caea3cc97b64
Author: Curtis Gedak <gedakc gmail com>
Date: Tue Nov 6 16:21:36 2012 -0700
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
README | 9 ++++++---
configure.in | 2 +-
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/README b/README
index 5122c6a..aedb3fe 100644
--- a/README
+++ b/README
@@ -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
diff --git a/configure.in b/configure.in
index 91dacb1..87e9e51 100644
--- a/configure.in
+++ b/configure.in
@@ -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======================
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]