summaryrefslogtreecommitdiff
path: root/policy/org.mate.power.policy.in2
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2011-12-11 12:55:19 +0100
committerStefano Karapetsas <[email protected]>2011-12-11 12:55:19 +0100
commit51175189c6d7313a3b84019e39496f957c4e6164 (patch)
treee4c2c130fa3140bca28685ef900f04a012e53dcd /policy/org.mate.power.policy.in2
downloadmate-power-manager-51175189c6d7313a3b84019e39496f957c4e6164.tar.bz2
mate-power-manager-51175189c6d7313a3b84019e39496f957c4e6164.tar.xz
moved from Mate-Extra
Diffstat (limited to 'policy/org.mate.power.policy.in2')
-rw-r--r--policy/org.mate.power.policy.in232
1 files changed, 32 insertions, 0 deletions
diff --git a/policy/org.mate.power.policy.in2 b/policy/org.mate.power.policy.in2
new file mode 100644
index 0000000..55deee8
--- /dev/null
+++ b/policy/org.mate.power.policy.in2
@@ -0,0 +1,32 @@
+<?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.0/policyconfig.dtd">
+<policyconfig>
+
+ <!--
+ Policy definitions for MATE Power Manager system-wide actions.
+ Copyright (c) 2010 Richard Hughes <[email protected]>
+ -->
+
+ <vendor>MATE Power Manager</vendor>
+ <vendor_url>http://www.mate.org/projects/mate-power-manager/</vendor_url>
+ <icon_name>battery</icon_name>
+
+ <action id="org.mate.power.backlight-helper">
+ <!-- SECURITY:
+ - A normal active user on the local machine does not need permission
+ to change the backlight brightness.
+ -->
+ <_description>Modify the laptop brightness</_description>
+ <_message>Authentication is required to modify the laptop brightness</_message>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>yes</allow_active>
+ </defaults>
+ <annotate key="org.freedesktop.policykit.exec.path">@sbindir@/mate-power-backlight-helper</annotate>
+ </action>
+
+</policyconfig>
+