summaryrefslogtreecommitdiff
path: root/system/gparted/gparted_polkit
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2013-12-10 09:40:01 +0700
committerErik Hanson <erik@slackbuilds.org>2013-12-14 10:53:04 -0600
commitb7eab76d3172fa4d9ea09df69fd412cc67ab0cb5 (patch)
tree1d17729db64238f9ca2039ee516e944fc6431c06 /system/gparted/gparted_polkit
parent285f000a4385a4f2046f3a76c4184f9a8cd33f80 (diff)
downloadslackbuilds-b7eab76d3172fa4d9ea09df69fd412cc67ab0cb5.tar.gz
system/gparted: Updated for version 0.17.0.
Use polkit to workaround gksudo not working. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org> Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/gparted/gparted_polkit')
-rw-r--r--system/gparted/gparted_polkit6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/gparted/gparted_polkit b/system/gparted/gparted_polkit
new file mode 100644
index 0000000000..76bd7b5e64
--- /dev/null
+++ b/system/gparted/gparted_polkit
@@ -0,0 +1,6 @@
+#!/bin/bash
+if [ $(which pkexec) ]; then
+ pkexec --disable-internal-agent "/usr/sbin/gparted" "$@"
+else
+ /usr/sbin/gparted "$@"
+fi