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 /org.mageia.draklive-install-lock-storage.policy | |
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 'org.mageia.draklive-install-lock-storage.policy')
-rw-r--r-- | org.mageia.draklive-install-lock-storage.policy | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/org.mageia.draklive-install-lock-storage.policy b/org.mageia.draklive-install-lock-storage.policy new file mode 100644 index 0000000..a73282f --- /dev/null +++ b/org.mageia.draklive-install-lock-storage.policy @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE policyconfig PUBLIC +"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" +"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> +<policyconfig> + + <vendor>Mageia</vendor> + <vendor_url>http://www.mageia.org/</vendor_url> + + <action id="org.mageia.draklive-install-lock-storage.pkexec.run"> + <description>Run draklive-install</description> + <message>Authentication is required to run Mageia Draklive Installer</message> + <icon_name>draklive-install</icon_name> + <defaults> + <allow_any>yes</allow_any> + <allow_inactive>no</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/draklive-install-lock-storage</annotate> + <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> + </action> +</policyconfig> |