endSessionDialog: Only show logout inhibiting apps
Apps that only inhibit other kinds of activity (like idle or suspend) don't need to be shown to user when they are logging out. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3119 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1424>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||
/* exported PresenceStatus, Presence, Inhibitor, SessionManager */
|
||||
/* exported PresenceStatus, Presence, Inhibitor, SessionManager, InhibitFlags */
|
||||
|
||||
const Gio = imports.gi.Gio;
|
||||
|
||||
@ -35,3 +35,11 @@ var SessionManagerProxy = Gio.DBusProxy.makeProxyWrapper(SessionManagerIface);
|
||||
function SessionManager(initCallback, cancellable) {
|
||||
return new SessionManagerProxy(Gio.DBus.session, 'org.gnome.SessionManager', '/org/gnome/SessionManager', initCallback, cancellable);
|
||||
}
|
||||
|
||||
var InhibitFlags = {
|
||||
LOGOUT: 1 << 0,
|
||||
SWITCH: 1 << 1,
|
||||
SUSPEND: 1 << 2,
|
||||
IDLE: 1 << 3,
|
||||
AUTOMOUNT: 1 << 4,
|
||||
};
|
||||
|
Reference in New Issue
Block a user