summaryrefslogtreecommitdiffstats
path: root/kde/post-install
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-05-21 17:33:17 +0200
committer Eric Hameleers <alien@slackware.com>2016-05-21 17:33:17 +0200
commitd61d1bec2acdcf3593e7462a6417412eb1ae6da0 (patch)
treefa5e93008d0fe691abbc9f46863570f38fb946da /kde/post-install
parent457d224ec57625a940612d7288904c25547e5338 (diff)
downloadktown-d61d1bec2acdcf3593e7462a6417412eb1ae6da0.tar.gz
ktown-d61d1bec2acdcf3593e7462a6417412eb1ae6da0.tar.xz
Powerdevil: fix the broken (missing) suspend menu item.
The file /etc/polkit-1/rules.d/10-enable-suspend.rules needs to be world-readable. When the file is not readable by world, an error will be logged to /var/log/secure about not being able to read the rules file and as a result it will not be applied by PolicyKit.
Diffstat (limited to 'kde/post-install')
-rw-r--r--kde/post-install/powerdevil.post-install2
1 files changed, 1 insertions, 1 deletions
diff --git a/kde/post-install/powerdevil.post-install b/kde/post-install/powerdevil.post-install
index 8bc673b..9eb14f2 100644
--- a/kde/post-install/powerdevil.post-install
+++ b/kde/post-install/powerdevil.post-install
@@ -7,7 +7,7 @@ mkdir -p $PKG/etc/polkit-1/localauthority/50-local.d
chmod 700 $PKG/etc/polkit-1/localauthority
# Add polkit policy file that brings back suspend/hibernate options:
-install -m 0660 -o root \
+install -m 0644 -o root \
$CWD/post-install/powerdevil/10-enable-suspend.rules \
$PKG/etc/polkit-1/rules.d/10-enable-suspend.rules.new
install -m 0660 -o root \