GNOME Bugzilla – Bug 607051
Switch User item should be hidden when VT switching is disabled
Last modified: 2010-01-27 16:52:30 UTC
The user switch applet always show "Switch User" item, but on OpenSolaris it is not true. Please check https://bugs.freedesktop.org/show_bug.cgi?id=26055. The applet should be hidden if VT switching disabled.
Created attachment 151454 [details] [review] Hide "Switch User" item when CanActivateSessions return false The applet should call CanActivateSessions or check vtdaemon status, since CanActivateSessions is more generic(gnome-session also uses that interface). I added gdm_user_manager_can_switch() to GdmUserManager for two intents: 1. There are duplicated codes of calling "CanActivateSessions" in _get_primary_user_session_id() and _get_login_window_session_id() 2. The applet can just simply call this function rather than writing duplicated codes.
Review of attachment 151454 [details] [review]: Looks good, thanks.