diff options
author | Eric Koegel <eric.koegel@gmail.com> | 2014-10-09 19:30:59 +0300 |
---|---|---|
committer | Eric Koegel <eric.koegel@gmail.com> | 2014-10-09 19:30:59 +0300 |
commit | d79c28572185335bd7c0d4f8bbce63d3904d1d6c (patch) | |
tree | b2c54f1d09b2fdfbb1f2b1ca2c8276d2da25af8e /data | |
parent | 98d14ab7faa49c080c9b230653ae6266e03094ab (diff) | |
download | ConsoleKit2-d79c28572185335bd7c0d4f8bbce63d3904d1d6c.tar.gz |
Start adding the Suspend/Hibernate DBUS API
The initial work in progress to add in suspend/hibernate and the
inhibit locks.
Diffstat (limited to 'data')
-rw-r--r-- | data/org.freedesktop.consolekit.policy | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/data/org.freedesktop.consolekit.policy b/data/org.freedesktop.consolekit.policy index a709b39..76a6cc8 100644 --- a/data/org.freedesktop.consolekit.policy +++ b/data/org.freedesktop.consolekit.policy @@ -45,4 +45,39 @@ Policy definitions for ConsoleKit </defaults> </action> + <action id="org.freedesktop.consolekit.system.suspend"> + <description>Suspend the system</description> + <message>System policy prevents suspending the system</message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.consolekit.system.suspend-multiple-users"> + <description>Suspend the system when multiple users are logged in</description> + <message>System policy prevents suspending the system when other users are logged in</message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>auth_admin_keep</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.consolekit.system.hibernate"> + <description>Hibernate the system</description> + <message>System policy prevents hibernating the system</message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.consolekit.system.hibernate-multiple-users"> + <description>Hibernate the system when multiple users are logged in</description> + <message>System policy prevents hibernating the system when other users are logged in</message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>auth_admin_keep</allow_active> + </defaults> + </action> </policyconfig> |