Code review comment for lp:~donadigo/appcenter/gtk-application-inhibit

Revision history for this message
Adam Bieńkowski (donadigo) wrote :

davidmhewitt: the reason this was rejected from audience is that Audience also calls something like "SimulateUserActivity" and Gtk Application does not. I did check what does the code in Gtk.Application class and it does the same as the unneded SuspendControl class in AppCenter (meaning connecting to the right interface and calling methods in order to inhibit the session, in this case org.gnome.SessionManager).

For testing I guess for the time AppCenter updates the OS, you could look into the gnome's SessionManager interface in d-feet to see if the session is currently inhibited. The other way is to do that in the code using Gtk.Application.is_inhibited to print out the boolean value of it's state.

« Back to merge proposal