Removing Sleep and hibernate options from Leave menu

Kevin Kofler kevin.kofler at chello.at
Tue Apr 5 13:38:59 UTC 2011


Roderick Johnstone wrote:
> I used to be able to remove the Sleep and Hibernate options from the kde
> Leave menu, systemwide, by having pm-is-supported do an "exit 1".
> 
> However, after the kde 4.6.1 update this no longer stops the Sleep and
> Hibernate items appearing. How would I remove these items systemwide  now?

You have to deny the org.freedesktop.upower.suspend and 
org.freedesktop.upower.hibernate PolicyKit policies to your users.

        Kevin Kofler



More information about the kde mailing list