diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-21 15:44:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-21 15:44:14 +0200 |
commit | 8e7fd6ade44ce5dde0867ba748c7978ed1206865 (patch) | |
tree | ced70d8e4c3d4e14f70ac459277c9046bd26500c /src/login/org.freedesktop.login1.policy.in | |
parent | 636d30a0895f17eca8313d50f9b2fc1ec5e128da (diff) | |
download | systemd-8e7fd6ade44ce5dde0867ba748c7978ed1206865.tar.gz |
logind: split up HandleSleepKey= into HandleSuspendKey= and HandleHibernateKey=
The kernel and X11 distuingish these two, and Thinkpad keys have both,
hence we really should distinguish them too.
Diffstat (limited to 'src/login/org.freedesktop.login1.policy.in')
-rw-r--r-- | src/login/org.freedesktop.login1.policy.in | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/login/org.freedesktop.login1.policy.in b/src/login/org.freedesktop.login1.policy.in index 8d991e40fb..57dfb2a8b6 100644 --- a/src/login/org.freedesktop.login1.policy.in +++ b/src/login/org.freedesktop.login1.policy.in @@ -76,9 +76,19 @@ </defaults> </action> - <action id="org.freedesktop.login1.inhibit-handle-sleep-key"> - <_description>Allow applications to inhibit system handling of the sleep key</_description> - <_message>Authentication is required to allow an application to inhibit system handling of the sleep key.</_message> + <action id="org.freedesktop.login1.inhibit-handle-suspend-key"> + <_description>Allow applications to inhibit system handling of the suspend key</_description> + <_message>Authentication is required to allow an application to inhibit system handling of the suspend key.</_message> + <defaults> + <allow_any>no</allow_any> + <allow_inactive>yes</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.login1.inhibit-handle-hibernate-key"> + <_description>Allow applications to inhibit system handling of the hibernate key</_description> + <_message>Authentication is required to allow an application to inhibit system handling of the hibernate key.</_message> <defaults> <allow_any>no</allow_any> <allow_inactive>yes</allow_inactive> |