aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/polkit-1/rules.d/51-desktop.rules.desktop
diff options
context:
space:
mode:
Diffstat (limited to 'files/usr/local/etc/polkit-1/rules.d/51-desktop.rules.desktop')
-rw-r--r--files/usr/local/etc/polkit-1/rules.d/51-desktop.rules.desktop8
1 files changed, 8 insertions, 0 deletions
diff --git a/files/usr/local/etc/polkit-1/rules.d/51-desktop.rules.desktop b/files/usr/local/etc/polkit-1/rules.d/51-desktop.rules.desktop
new file mode 100644
index 0000000..d57c4b9
--- /dev/null
+++ b/files/usr/local/etc/polkit-1/rules.d/51-desktop.rules.desktop
@@ -0,0 +1,8 @@
+polkit.addRule(function (action, subject) {
+ if ((action.id == "org.freedesktop.consolekit.system.restart" ||
+ action.id == "org.freedesktop.consolekit.system.stop" ||
+ action.id == "org.freedesktop.consolekit.system.suspend")
+ && subject.isInGroup("${desktop_access_role}")) {
+ return polkit.Result.YES;
+ }
+});