GNOME Bugzilla – Bug 655398
provide API for inhibit screensaver/suspend/etc
Last modified: 2012-01-26 04:08:10 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.
Relevant art: http://git.gnome.org/browse/gnome-screensaver/commit/?id=db23fe2694a928ce7d346118913681952e0edb56 http://git.gnome.org/browse/gnome-session/tree/gnome-session/org.gnome.SessionManager.xml
It turns out the current way of doing this in gnome is to inhibit the session from going idle.
Added in GtkApplication, a while ago