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-17 14:21:09 +0200
committer Eric Hameleers <alien@slackware.com>2020-06-17 14:21:09 +0200
commita46849f7fe8b5ecb2dfe0132d7988008a4f95118 (patch)
tree58ae4e18c07387ecb3e32bec49eb869d9df7c778 /kde/post-install/powerdevil/10-enable-ck2-poweroff.rules
parent862c3bb234d9b603bbc5b1f1c5dbe60415a8e47f (diff)
downloadktown-a46849f7fe8b5ecb2dfe0132d7988008a4f95118.tar.gz
ktown-a46849f7fe8b5ecb2dfe0132d7988008a4f95118.tar.xz
Powerdevil: rename polkit rules files according to the post-install script
Diffstat (limited to 'kde/post-install/powerdevil/10-enable-ck2-poweroff.rules')
-rw-r--r--kde/post-install/powerdevil/10-enable-ck2-poweroff.rules12
1 files changed, 0 insertions, 12 deletions
diff --git a/kde/post-install/powerdevil/10-enable-ck2-poweroff.rules b/kde/post-install/powerdevil/10-enable-ck2-poweroff.rules
deleted file mode 100644
index 2a8a5a7..0000000
--- a/kde/post-install/powerdevil/10-enable-ck2-poweroff.rules
+++ /dev/null
@@ -1,12 +0,0 @@
-polkit.addRule(
- function(action, subject) {
- 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;
- }
- }
-);
-