From 37e25d724cfda5417a4ddd03e601fb436573df78 Mon Sep 17 00:00:00 2001 From: "tv@mageia.org" Date: Fri, 29 May 2020 21:50:54 +0200 Subject: Add polkit feature --- wrapper | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 wrapper (limited to 'wrapper') 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 "$@" -- cgit v1.2.1