From c8f9f09bcfec97ab54bf26b70995701d73410201 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 30 May 2015 14:43:58 +0200 Subject: Powerdevil: added Polkit Local Authority files. Fixes KDEBUG 344456. This fixes the missing Shutdown/Reboot and Suspend/Hibernate functionality. --- kde/post-install/powerdevil.post-install | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'kde/post-install/powerdevil.post-install') diff --git a/kde/post-install/powerdevil.post-install b/kde/post-install/powerdevil.post-install index 19920d4..20e2e59 100644 --- a/kde/post-install/powerdevil.post-install +++ b/kde/post-install/powerdevil.post-install @@ -1,4 +1,19 @@ # Move the polkit dbus configuration files to the proper place: mkdir -p $PKG/etc -mv $PKG//etc/kde/dbus-1 $PKG/etc/ +mv $PKG/etc/kde/dbus-1 $PKG/etc/ + +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 \ + $CWD/post-install/powerdevil/30-org.freedesktop.upower.pkla \ + $PKG/etc/polkit-1/localauthority/50-local.d/30-org.freedesktop.upower.pkla.new +# Add polkit policy files that bring back shutdown/reboot: +install -m 0660 -o root \ + $CWD/post-install/powerdevil/40-org.freedesktop.consolekit.system.stop-multiple-users.pkla \ + $PKG/etc/polkit-1/localauthority/50-local.d/40-org.freedesktop.consolekit.system.stop-multiple-users.pkla.new +install -m 0660 -o root \ + $CWD/post-install/powerdevil/41-org.freedesktop.consolekit.system.restart-multiple-users.pkla \ + $PKG/etc/polkit-1/localauthority/50-local.d/41-org.freedesktop.consolekit.system.restart-multiple-users.pkla.new -- cgit v1.2.3