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 686736 - log out not offered when logged in as root
log out not offered when logged in as root
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-10-23 22:27 UTC by William Jon McCann
Modified: 2012-10-31 16:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
userMenu: Show the Log Out item in more cases (2.21 KB, patch)
2012-10-23 23:23 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
another untested patch (1.18 KB, patch)
2012-10-29 04:30 UTC, Matthias Clasen
none Details | Review

Description William Jon McCann 2012-10-23 22:27:17 UTC
Today I observed a user completely confused by the lack of a logout option when they logged in as root. They created a new user in the Fedora firstboot thingy (without a home directory), logged in as root using "Other...", copied their home directory from another machine, and wanted to log out and log back in as the user they initially created.

There are a few things weird about this that could be better but it is clearly a bug that we don't offer log out in the case where the logged in user isn't the primary user account on the system.

The installer / initial setup should also probably help migrate data (like in some of our mockups) but that's another story.
Comment 1 Jasper St. Pierre (not reading bugmail) 2012-10-23 23:23:13 UTC
Created attachment 227106 [details] [review]
userMenu: Show the Log Out item in more cases

There can be cases where accountsservice may skip special users
that shouldn't be shown to the user, like "root", that the user
can still log into with the "Not listed..." menu item. Instead
of checking for the existence of one of these users, make sure
that the one user is not the same as the user already logged in.


Completely untested patch.
Comment 2 Matthias Clasen 2012-10-29 04:30:27 UTC
Created attachment 227497 [details] [review]
another untested patch

Another untested patch. This one tries to handle both the 'remote user' and the 'root' situation.
Comment 3 Matthias Clasen 2012-10-31 16:45:22 UTC
tested, and pushed