summaryrefslogtreecommitdiff
path: root/xfce4-session/org.xfce.session.policy.in2
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2015-03-22 06:18:07 -0700
committerYves-Alexis Perez <corsac@debian.org>2015-03-22 06:18:07 -0700
commit8ea49fdb7ecf5b14d99fca09c57f6d988ff90739 (patch)
treeb9bd6ff1471b3c3fcd73562c9825e5570a027de3 /xfce4-session/org.xfce.session.policy.in2
downloadxfce4-session-8ea49fdb7ecf5b14d99fca09c57f6d988ff90739.tar.gz
Import xfce4-session_4.12.1.orig.tar.bz2
[dgit import orig xfce4-session_4.12.1.orig.tar.bz2]
Diffstat (limited to 'xfce4-session/org.xfce.session.policy.in2')
-rw-r--r--xfce4-session/org.xfce.session.policy.in234
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 0000000..7f7c5ae
--- /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>
+