summaryrefslogtreecommitdiffstats
path: root/kde/post-install/powerdevil/10-enable-ck2-poweroff.rules
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-06-16 22:54:24 +0200
committer Eric Hameleers <alien@slackware.com>2020-06-16 22:54:24 +0200
commit9cf329b239d83e5ab552446e286f09563b77edc1 (patch)
tree0966a5857c6f321e7dc0917e4d9b1778eb36d34d /kde/post-install/powerdevil/10-enable-ck2-poweroff.rules
parent807e69a3d6c0e339d2d060705f4128b6fec5dceb (diff)
downloadktown-9cf329b239d83e5ab552446e286f09563b77edc1.tar.gz
ktown-9cf329b239d83e5ab552446e286f09563b77edc1.tar.xz
Plasma powerdevil: fix the polkit rules and install them correctly
Thanks to LuckyCyborg.
Diffstat (limited to '')
-rw-r--r--kde/post-install/powerdevil/10-enable-ck2-poweroff.rules8
1 files changed, 4 insertions, 4 deletions
diff --git a/kde/post-install/powerdevil/10-enable-ck2-poweroff.rules b/kde/post-install/powerdevil/10-enable-ck2-poweroff.rules
index 2c68027..2a8a5a7 100644
--- a/kde/post-install/powerdevil/10-enable-ck2-poweroff.rules
+++ b/kde/post-install/powerdevil/10-enable-ck2-poweroff.rules
@@ -1,9 +1,9 @@
polkit.addRule(
function(action, subject) {
- if ( (action.id == "org.freedesktop.consolekit.reboot" ||
- action.id == "org.freedesktop.consolekit.reboot-multiple-sessions" ||
- action.id == "org.freedesktop.consolekit.power-off" ||
- action.id == "org.freedesktop.consolekit.power-off-multiple-sessions")
+ if ( (action.id == "org.freedesktop.consolekit.system.restart" ||
+ action.id == "org.freedesktop.consolekit.system.restart-multiple-users" ||
+ action.id == "org.freedesktop.consolekit.system.stop" ||
+ action.id == "org.freedesktop.consolekit.system.stop-multiple-users")
&& subject.isInGroup("power") ) {
return polkit.Result.YES;
}