summaryrefslogtreecommitdiff
path: root/policy
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-07-24 17:41:14 +0100
committerRichard Hughes <richard@hughsie.com>2008-07-24 17:41:14 +0100
commit4398839de1ecf4e88f425703c182444540a488c2 (patch)
treee0d3d34c74f0aab4f7fb47e94c32e6ed8de16408 /policy
parent058834be91645d445c1c785e3339fc383efba301 (diff)
downloadupower-4398839de1ecf4e88f425703c182444540a488c2.tar.gz
add the PolicyKit action org.freedesktop.devicekit.power.hibernate
Diffstat (limited to 'policy')
-rw-r--r--policy/org.freedesktop.devicekit.power.policy.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/policy/org.freedesktop.devicekit.power.policy.in b/policy/org.freedesktop.devicekit.power.policy.in
index 759b747..d74e16c 100644
--- a/policy/org.freedesktop.devicekit.power.policy.in
+++ b/policy/org.freedesktop.devicekit.power.policy.in
@@ -20,8 +20,18 @@ file are instantly applied.
<icon_name>system-suspend</icon_name>
<action id="org.freedesktop.devicekit.power.suspend">
- <_description>Suspend the system to RAM</_description>
- <_message>Authentication is required to suspend to system</_message>
+ <_description>Suspend the system</_description>
+ <_message>Authentication is required to suspend the system</_message>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>yes</allow_active>
+ </defaults>
+ </action>
+
+ <action id="org.freedesktop.devicekit.power.hibernate">
+ <_description>Hibernate the system</_description>
+ <_message>Authentication is required to hibernate the system</_message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>