After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 655468 - use gnome-session's dbus api to inhibit the session
use gnome-session's dbus api to inhibit the session
Status: RESOLVED DUPLICATE of bug 646499
Product: banshee
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-07-28 01:26 UTC by Ulf Winkelvos
Modified: 2011-07-30 03:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
use gnome session's dbus api to inhibit (4.00 KB, patch)
2011-07-28 01:26 UTC, Ulf Winkelvos
none Details | Review

Description Ulf Winkelvos 2011-07-28 01:26:31 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.
Comment 1 Ulf Winkelvos 2011-07-28 01:55:53 UTC
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.
Comment 2 Ulf Winkelvos 2011-07-30 03:24:52 UTC

*** This bug has been marked as a duplicate of bug 646499 ***