summaryrefslogtreecommitdiffstats
path: root/source/xap/gparted/gparted_polkit
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/gparted/gparted_polkit')
-rw-r--r--source/xap/gparted/gparted_polkit6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/xap/gparted/gparted_polkit b/source/xap/gparted/gparted_polkit
new file mode 100644
index 000000000..76bd7b5e6
--- /dev/null
+++ b/source/xap/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