summarylogtreecommitdiffstats
path: root/usbmaker_polkit
diff options
context:
space:
mode:
authorgmes782017-07-22 21:34:19 +0100
committergmes782017-07-22 21:34:19 +0100
commit7d6ffc888bd1f0b458857742f210f1e084247d76 (patch)
tree35a266d4792b577f4213e32791e8c43d34b411f5 /usbmaker_polkit
downloadaur-usbmaker.tar.gz
Initial commit
Diffstat (limited to 'usbmaker_polkit')
-rwxr-xr-xusbmaker_polkit6
1 files changed, 6 insertions, 0 deletions
diff --git a/usbmaker_polkit b/usbmaker_polkit
new file mode 100755
index 000000000000..87bddf885f1e
--- /dev/null
+++ b/usbmaker_polkit
@@ -0,0 +1,6 @@
+#!/bin/bash
+if [ $(which pkexec) ]; then
+ pkexec --disable-internal-agent "/usr/bin/usbmaker" "$@"
+else
+ /usr/bin/usbmaker "$@"
+fi