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 655398 - provide API for inhibit screensaver/suspend/etc
provide API for inhibit screensaver/suspend/etc
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-07-27 09:11 UTC by Allison Karlitskaya (desrt)
Modified: 2012-01-26 04:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2011-07-27 09:11:09 UTC
A nice addition to gtk (or gio?) might be some interfaces to let apps request that the screensaver or suspend features be inhibited.  I guess this is available on just about every platform, and there's no common way for apps to deal with this.

It also prevents apps randomly poking D-Bus interfaces and prevents creating a silly libinhibit or something like that.
Comment 2 Matthias Clasen 2011-07-27 23:34:40 UTC
It turns out the current way of doing this in gnome is to inhibit the session from going idle.
Comment 3 Matthias Clasen 2012-01-26 04:08:10 UTC
Added in GtkApplication, a while ago