[gparted] Now install gparted wrapper script into $prefix/bin (#776437)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Now install gparted wrapper script into $prefix/bin (#776437)
- Date: Fri, 1 Sep 2017 16:33:30 +0000 (UTC)
commit 778e21e94c9c5608a7087f31f1491e5744b864b8
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Sat Aug 5 15:43:47 2017 +0100
Now install gparted wrapper script into $prefix/bin (#776437)
Now that the gparted script is intended to be run by ordinary users, as
well as root, install it into directory $prefix/bin rather than
$prefix/sbin.
Bug 776437 - GParted fails to run as root under Wayland
Makefile.am | 7 ++++---
gparted.desktop.in.in | 2 +-
gparted.in | 4 ++--
3 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index e88b0d3..5a562eb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -20,10 +20,11 @@ APPDATA_FILES =$(APPDATA_IN_FILES:.xml.in=.xml)
appdatadir = $(datadir)/appdata
appdata_DATA = $(APPDATA_FILES)
-sbin_SCRIPTS = gparted
-CLEANFILES = $(sbin_SCRIPTS) $(DESKTOP_IN_FILES)
+bin_SCRIPTS = gparted
+CLEANFILES = $(bin_SCRIPTS) $(DESKTOP_IN_FILES)
-do_subst = sed -e 's,[@]installdir[@],$(sbindir),g' \
+do_subst = sed -e 's,[@]sbindir[@],$(sbindir),g' \
+ -e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]gksuprog[@],$(GKSUPROG),g'
gparted.desktop.in: gparted.desktop.in.in Makefile
diff --git a/gparted.desktop.in.in b/gparted.desktop.in.in
index 394eda6..3712b7d 100644
--- a/gparted.desktop.in.in
+++ b/gparted.desktop.in.in
@@ -3,7 +3,7 @@ _Name=GParted
_GenericName=Partition Editor
_X-GNOME-FullName=GParted Partition Editor
_Comment=Create, reorganize, and delete partitions
-Exec=@installdir@/gparted %f
+Exec=@bindir@/gparted %f
Icon=gparted
Terminal=false
Type=Application
diff --git a/gparted.in b/gparted.in
index 68902cb..4eb6300 100755
--- a/gparted.in
+++ b/gparted.in
@@ -39,7 +39,7 @@ fi
#
# Define base command for executing GParted
#
-BASE_CMD="@installdir@/gpartedbin $*"
+BASE_CMD="@sbindir@/gpartedbin $*"
#
# For non-root users try to get authorisation to run GParted as root.
@@ -56,7 +56,7 @@ if test "x`id -u`" != "x0"; then
exit 1
fi
- @gksuprog@ '@installdir@/gparted' "$@"
+ @gksuprog@ '@bindir@/gparted' "$@"
exit $?
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]