Created an attachment (id=33162)
Add {Suspend,Hibernate}Allowed D-Bus methods
Add two D-Bus server methods to check whether the caller has the privilege to
suspend or hibernate.
We do that on the server side, since that already has everything set up for PolicyKit querying, instead of adding a new dependency and lots of new code to the client side.
Created an attachment (id=33162) Hibernate} Allowed D-Bus methods
Add {Suspend,
Add two D-Bus server methods to check whether the caller has the privilege to
suspend or hibernate.
We do that on the server side, since that already has everything set up for PolicyKit querying, instead of adding a new dependency and lots of new code to the client side.