summaryrefslogtreecommitdiff
path: root/system/gparted/gparted_polkit
diff options
context:
space:
mode:
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