Added check for gksu for gparted menu invocation

svn path=/trunk/; revision=870
This commit is contained in:
Curtis Gedak 2008-07-23 17:56:57 +00:00
parent 8c3362ab72
commit 946810f9ca
4 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,13 @@
2008-07-23 Curtis Gedak <gedakc@gmail.com>
* gparted.desktop.in.in,
Makefile.am,
configure.in: Added check for gksu for gparted menu invocation.
- Permits GNU/Linux distributions with gksu to prompt for root
password when invoked from the menu, while not hampering
distributions without gksu.
- Partially addresses bug 318557 for some GNU/Linux distributions
* configure.in: Append -svn to version for continuing development
2008-07-10 Curtis Gedak <gedakc@gmail.com>

View File

@ -12,7 +12,8 @@ desktop_DATA = $(DESKTOP_FILES)
sbin_SCRIPTS = gparted
CLEANFILES = $(sbin_SCRIPTS) $(DESKTOP_IN_FILES)
do_subst = sed -e 's,[@]installdir[@],$(sbindir),g'
do_subst = sed -e 's,[@]installdir[@],$(sbindir),g' \
-e 's,[@]gksuprog[@],$(GKSUPROG),g'
gparted.desktop.in: gparted.desktop.in.in Makefile
$(do_subst) < $(srcdir)/gparted.desktop.in.in > gparted.desktop.in

View File

@ -14,6 +14,10 @@ AC_PROG_CC
AC_PROG_CXX
AM_PROG_LIBTOOL
dnl======================
dnl checks for other programs
dnl======================
AC_PATH_PROG(GKSUPROG, gksu)
dnl======================
dnl i18n stuff

View File

@ -1,7 +1,7 @@
[Desktop Entry]
_Name=GParted Partition Editor
_Comment=Create, reorganize, and delete partitions
Exec=@installdir@/gparted
Exec=@gksuprog@ @installdir@/gparted
Icon=gparted
Terminal=false
Type=Application