org.freedesktop.PowerManagement

Richard Hughes hughsient at gmail.com
Tue Mar 20 15:17:01 PDT 2007


On Wed, 2007-03-21 at 09:07 +1100, Nigel Tao wrote:
> > gboolean AllowedSuspend (void)
> > gboolean AllowedHibernate (void)
> > gboolean AllowedReboot (void)
> > gboolean AllowedShutdown (void)
> 
> Would IsSuspendAllowed, IsHibernateAllowed, etc. be more natural
> names?

CanSuspend?
CanHibernate?

This is to convey that the action might be locked down by the admin, or
the hardware is incapable of the action, or we might fail for another
reason.

I.e. this would be used by stuff like gnome-panel to enable the suspend
and hibernate icons, and gnome-session for the logout options. Fedora
originally patched this, I'm not sure if it's upstream yet.

Richard.





More information about the xdg mailing list