You are not logged in.
I used to be able to disable hibernate and standby, and the options would be removed from the KDE menu, by editing /usr/share/polkit-1/actions/org.freedesktop.upower.policy. This doesn't work anymore, I'm presuming because of systemd, is there any other way?
Last edited by forkboy (2013-04-20 13:29:08)
Offline
I would be very interested to know how to do this, I have been trying to remove hibernate from the KDE menu for days now, like you said, it would appear that systemd does not take any notice of the polkit polices.
Are you using KDM or LightDM?
Offline
Offline
Are you using KDM or LightDM?
I am using KDM.
Thanks, but kmenuedit doesn't allow you to remove the hibernate and standby options.
Offline
You have to change user/share/polkit-1/actions/org.freedesktop.login1.policy.
<action id="org.freedesktop.login1.suspend">
<description>Suspend the system</description>
<message>Authentication is required for suspending the system.</message>
<defaults>
<allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>
<allow_active>no</allow_active>
</defaults>
</action>
<action id="org.freedesktop.login1.suspend-multiple-sessions">
<description>Suspend the system while other users are logged in</description>
<message>Authentication is required for suspending the system while other users are logged in.</message>
<defaults>
<allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>
<allow_active>no</allow_active>
also for hibernate too.
I don't find a way to do it with a polkit *.pkla
Offline
That's it timgreen, thankyou
Offline