summaryrefslogtreecommitdiffstats
path: root/wrapper
diff options
context:
space:
mode:
authortv@mageia.org <tv@mageia.org>2020-05-29 21:50:54 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2020-06-02 10:11:08 +0200
commit37e25d724cfda5417a4ddd03e601fb436573df78 (patch)
tree3182758f1c0c8714d1ab88a664393ae9477495fb /wrapper
parentf14aaecef5b5fa76646960b826b81e2fcdc6f48d (diff)
downloaddraksnapshot-37e25d724cfda5417a4ddd03e601fb436573df78.tar
draksnapshot-37e25d724cfda5417a4ddd03e601fb436573df78.tar.gz
draksnapshot-37e25d724cfda5417a4ddd03e601fb436573df78.tar.bz2
draksnapshot-37e25d724cfda5417a4ddd03e601fb436573df78.tar.xz
draksnapshot-37e25d724cfda5417a4ddd03e601fb436573df78.zip
Add polkit feature
Diffstat (limited to 'wrapper')
-rw-r--r--wrapper12
1 files changed, 12 insertions, 0 deletions
diff --git a/wrapper b/wrapper
new file mode 100644
index 0000000..6882141
--- /dev/null
+++ b/wrapper
@@ -0,0 +1,12 @@
+#!/bin/sh
+if [[ "$UID" != "0" ]] ; then
+ /usr/bin/pkexec /usr/libexec/draksnapshot-config "$@"
+ exit $?
+fi
+exec /usr/libexec/draksnapshot-config "$@"
+#!/bin/sh
+if [[ "$UID" != "0" ]] ; then
+ /usr/bin/pkexec /usr/libexec/draksnapshot-config "$@"
+ exit $?
+fi
+exec /usr/libexec/draksnapshot-config "$@"