From 7298f5261526384e4d95b267e502713494375dd5 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 17 Dec 2016 14:01:06 +0000 Subject: Use polkit instead of consolehelper to gain root access. Rather than spending lots of time figuring out why consolehelper no longer works in GNOME. --- draklive-install.wrapper | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 draklive-install.wrapper (limited to 'draklive-install.wrapper') diff --git a/draklive-install.wrapper b/draklive-install.wrapper new file mode 100755 index 0000000..5a8f4eb --- /dev/null +++ b/draklive-install.wrapper @@ -0,0 +1,6 @@ +#!/bin/sh +if [[ "$UID" != "0" ]] ; then + /usr/bin/pkexec /usr/sbin/draklive-install-lock-storage "$@" + exit $? +fi +exec /usr/sbin/draklive-install-lock-storage "$@" -- cgit v1.2.1