diff options
author | Eric Koegel <eric.koegel@gmail.com> | 2014-08-10 19:16:17 +0300 |
---|---|---|
committer | Eric Koegel <eric.koegel@gmail.com> | 2014-08-28 18:52:27 +0300 |
commit | 29d87f559aadba51e7bd6afcf4aeeb615ecb2145 (patch) | |
tree | 06868c098165699f518daa3b933ddcaeac7abfe5 /xfce4-session/org.xfce.session.policy.in2 | |
parent | bb0cbd537d72be4dece2ade8a86d76335dfda2dc (diff) | |
download | xfce4-session-29d87f559aadba51e7bd6afcf4aeeb615ecb2145.tar.gz |
Use pkexec for xfsm-shutdown (Bug 9952)
Instead of using the sudo helper, this patch calls xfsm-shutdown
using pkexec. This way users can use things like fingerprint
readers for authentication. Also this patch provides suspend/resume
support since UPower 0.99 dropped it.
Diffstat (limited to 'xfce4-session/org.xfce.session.policy.in2')
-rw-r--r-- | xfce4-session/org.xfce.session.policy.in2 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/xfce4-session/org.xfce.session.policy.in2 b/xfce4-session/org.xfce.session.policy.in2 new file mode 100644 index 00000000..7f7c5aec --- /dev/null +++ b/xfce4-session/org.xfce.session.policy.in2 @@ -0,0 +1,34 @@ +<?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 XFCE Session Manager system-wide actions. + Copyright (c) 2014 Eric Koegel <eric@xfce.org> + Based on the XFCE Power Manager policy file. + --> + + <vendor>XFCE Session Manager</vendor> + <vendor_url>http://xfce.org/</vendor_url> + <icon_name>xfce4-session</icon_name> + + + <action id="org.xfce.session.xfsm-shutdown-helper"> + <!-- SECURITY: + - A normal active user on the local machine does not need permission + to suspend or hibernate their system. + --> + <_description>Shutdown, restart, suspend, or hibernate the system</_description> + <_message>Authentication is required to shutdown, restart, suspend, or hibernate the system.</_message> + <defaults> + <allow_any>auth_admin</allow_any> + <allow_inactive>auth_admin</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + <annotate key="org.freedesktop.policykit.exec.path">@HELPER_PATH_PREFIX@/xfce4/session/xfsm-shutdown-helper</annotate> + </action> + +</policyconfig> + |