summaryrefslogtreecommitdiff
path: root/community/gsmartcontrol/gsmartcontrol_polkit
diff options
context:
space:
mode:
Diffstat (limited to 'community/gsmartcontrol/gsmartcontrol_polkit')
-rw-r--r--community/gsmartcontrol/gsmartcontrol_polkit6
1 files changed, 6 insertions, 0 deletions
diff --git a/community/gsmartcontrol/gsmartcontrol_polkit b/community/gsmartcontrol/gsmartcontrol_polkit
new file mode 100644
index 000000000..fa7ec8557
--- /dev/null
+++ b/community/gsmartcontrol/gsmartcontrol_polkit
@@ -0,0 +1,6 @@
+#!/bin/bash
+if [ $(which pkexec) ]; then
+ pkexec --disable-internal-agent "/usr/bin/gsmartcontrol" "$@"
+else
+ /usr/bin/gsmartcontrol "$@"
+fi