GNOME Bugzilla – Bug 693896
"Other users logged in" even if I'm the only user
Last modified: 2013-02-18 19:14:21 UTC
gnome-shell is displaying the "Other users are logged in, really shut down" prompt even though `loginctl` only lists one session – my own. This is probably caused by me starting GNOME using `startx` from a "tty" session, while gnome-shell checks for proxy.Type == "x11". Instead, gnome-shell could compare proxy.Id with the $XDG_SESSION_ID environment variable. (Also, it probably shouldn't list the same user twice, if they have more than one session...)
(In reply to comment #0) > gnome-shell is displaying the "Other users are logged in, really shut down" > prompt even though `loginctl` only lists one session – my own. > > This is probably caused by me starting GNOME using `startx` from a "tty" > session, while gnome-shell checks for proxy.Type == "x11". Sigh ... people still use startx in 2013? Does it show "Username (console)" ? > (Also, it probably shouldn't list the same user twice, if they have more than > one session...) Why? Knowing that you have an SSH or VT console open is useful information to the user.
(In reply to comment #1) > (In reply to comment #0) > > gnome-shell is displaying the "Other users are logged in, really shut down" > > prompt even though `loginctl` only lists one session – my own. > > > > This is probably caused by me starting GNOME using `startx` from a "tty" > > session, while gnome-shell checks for proxy.Type == "x11". > > Sigh ... people still use startx in 2013? Yes, many people do. (especially when reporting gnome-shell bugs :) It doesn't cause any session-management-related problems; systemd/logind developers say it is supported as long as the X server is started on the same VT. > Does it show "Username (console)" ? Yes, it does. > > (Also, it probably shouldn't list the same user twice, if they have more than > > one session...) > > Why? Knowing that you have an SSH or VT console open is useful information to > the user. Hm, I guess you're right about that.
Created attachment 236628 [details] [review] userMenu: Use the session id to detect the current session This allows us to detect startx sessions.
Review of attachment 236628 [details] [review]: OK.
Pushed after discussion with Lennart and IRC review. For the record: <poettering> so, yeah, i think what mantas suggests is the right thing to do <poettering> even though i don't believe in startx Attachment 236628 [details] pushed as e411a4a - userMenu: Use the session id to detect the current session