OtherUsersDialog: don't show closing sessions
It is possible that a session survives after closing, if any processes (usually PulseAudio and GConf) are still alive at the end. In that case, ignore it, as the user is already logged out and there is nothing to lose. https://bugzilla.gnome.org/show_bug.cgi?id=695002
This commit is contained in:
parent
deb77a4dde
commit
e6634c56d3
@ -52,6 +52,7 @@ const SystemdLoginSessionIface = <interface name='org.freedesktop.login1.Session
|
||||
<property name="Remote" type="b" access="read"/>
|
||||
<property name="Class" type="s" access="read"/>
|
||||
<property name="Type" type="s" access="read"/>
|
||||
<property name="State" type="s" access="read"/>
|
||||
</interface>;
|
||||
|
||||
const SystemdLoginSession = Gio.DBusProxy.makeProxyWrapper(SystemdLoginSessionIface);
|
||||
@ -961,6 +962,9 @@ const UserMenuButton = new Lang.Class({
|
||||
if (proxy.Class != 'user')
|
||||
continue;
|
||||
|
||||
if (proxy.State == 'closing')
|
||||
continue;
|
||||
|
||||
if (proxy.Id == GLib.getenv('XDG_SESSION_ID'))
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user