After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 693896 - "Other users logged in" even if I'm the only user
"Other users logged in" even if I'm the only user
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.7.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-02-15 15:39 UTC by Mantas Mikulėnas (grawity)
Modified: 2013-02-18 19:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
userMenu: Use the session id to detect the current session (1.33 KB, patch)
2013-02-18 17:04 UTC, drago01
committed Details | Review

Description Mantas Mikulėnas (grawity) 2013-02-15 15:39:22 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...)
Comment 1 drago01 2013-02-15 17:51:42 UTC
(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.
Comment 2 Mantas Mikulėnas (grawity) 2013-02-15 18:09:26 UTC
(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.
Comment 3 drago01 2013-02-18 17:04:11 UTC
Created attachment 236628 [details] [review]
userMenu: Use the session id to detect the current session

This allows us to detect startx sessions.
Comment 4 Jasper St. Pierre (not reading bugmail) 2013-02-18 19:11:57 UTC
Review of attachment 236628 [details] [review]:

OK.
Comment 5 drago01 2013-02-18 19:14:17 UTC
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