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