GNOME Bugzilla – Bug 655468
use gnome-session's dbus api to inhibit the session
Last modified: 2011-07-30 03:24:52 UTC
Created attachment 192787 [details] [review] use gnome session's dbus api to inhibit Currently gnome-screensaver's dbus api is used for inhibit requests. This api was removed with the transition to gnome 3. (as stated in the source :) ) gnome-session's dbus api provides inhibit methods. If i remember correctly this is true for quite some time (2 years) and gnome-screensaver was only used as a proxy.
the attached patch makes banshee request to inhibit sleep and idle ("0x4 ^ 0x8" see http://people.gnome.org/~mccann/gnome-session/docs/gnome-session.html#org.gnome.SessionManager.Inhibit). With current gnome-power-manager (3.0.2) this does not do any harm, as it does not do any inhibit checks for other events than idle. So pressing the sleep key or closing the lid does still suspend the computer. This might be implemented in future versions though and then might cause unexpected behaviour. But I like to close the the lid while listening to music and therefore patched the gpm to check inhibits. So some people like me want banshee to inhibit other suspend reasons too.
*** This bug has been marked as a duplicate of bug 646499 ***