summaryrefslogtreecommitdiffstats
path: root/files/WIP/org.mageia.draklive-install-lock-storage.policy
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2016-12-08 18:41:57 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2016-12-08 19:07:22 +0000
commitf740ecb1f5cec298aa05b8c946e3d06a1d446395 (patch)
treeaf99960679f01fce7d84769a737955ffc6124119 /files/WIP/org.mageia.draklive-install-lock-storage.policy
parentd986708f386a2b0f8bda10534e90e0edbc16e366 (diff)
downloaddraklive-config-f740ecb1f5cec298aa05b8c946e3d06a1d446395.tar
draklive-config-f740ecb1f5cec298aa05b8c946e3d06a1d446395.tar.gz
draklive-config-f740ecb1f5cec298aa05b8c946e3d06a1d446395.tar.bz2
draklive-config-f740ecb1f5cec298aa05b8c946e3d06a1d446395.tar.xz
draklive-config-f740ecb1f5cec298aa05b8c946e3d06a1d446395.zip
(temporary) Convert draklive-install to use polkit, not consolehelper.
Taken from tmb's WIP. The old method of using consolehelper was failing authentication in GNOME. Temporarily added here to get the sta2 ISOs built. Revert this when the changes get pushed to draklive-install.
Diffstat (limited to 'files/WIP/org.mageia.draklive-install-lock-storage.policy')
-rw-r--r--files/WIP/org.mageia.draklive-install-lock-storage.policy22
1 files changed, 22 insertions, 0 deletions
diff --git a/files/WIP/org.mageia.draklive-install-lock-storage.policy b/files/WIP/org.mageia.draklive-install-lock-storage.policy
new file mode 100644
index 0000000..a73282f
--- /dev/null
+++ b/files/WIP/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>