diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2016-12-17 14:01:06 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2016-12-19 20:29:02 +0000 |
commit | 7298f5261526384e4d95b267e502713494375dd5 (patch) | |
tree | 93579ddc855f0300b2b1c2ba712059d5b53297bf /draklive-install.wrapper | |
parent | ca8e1afc4109667b7dbc951fc4ca0c3e5bb9a3ca (diff) | |
download | draklive-install-7298f5261526384e4d95b267e502713494375dd5.tar draklive-install-7298f5261526384e4d95b267e502713494375dd5.tar.gz draklive-install-7298f5261526384e4d95b267e502713494375dd5.tar.bz2 draklive-install-7298f5261526384e4d95b267e502713494375dd5.tar.xz draklive-install-7298f5261526384e4d95b267e502713494375dd5.zip |
Use polkit instead of consolehelper to gain root access.
Rather than spending lots of time figuring out why consolehelper no
longer works in GNOME.
Diffstat (limited to 'draklive-install.wrapper')
-rwxr-xr-x | draklive-install.wrapper | 6 |
1 files changed, 6 insertions, 0 deletions
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 "$@" |