Comment 47 for bug 432598

Revision history for this message
Matthew L. Dailey (matthew-l-dailey) wrote :

I've been pulling my hair out on this one today on a lucid test system, wondering why I couldn't get the parts that should work working. Finally realized that it was a simple mistake, but thought I'd point it out here in the hopes that it will save someone else some time.

In *lucid*, the policykit "actions" have changed. They used to be org.freedesktop.devicekit.power.* but are now org.freedesktop.upower.*

So, Martin's example in #28 goes like this on lucid:
$ sudo cat /etc/polkit-1/localauthority/50-local.d/disable-suspend.pkla
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend;org.freedesktop.upower.hibernate
ResultActive=no
ResultAny=no

$ pkcheck --action-id org.freedesktop.upower.suspend --process $$
Not authorized.

Once this change is made, everything's happy, except for the Indicator applet, which is still an open issue.