[gnome-shell/gnome-3-6] Show 'Log out' in more situations



commit b9851e31272826ee1100786fc8e71ab378de0eee
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Oct 28 23:55:43 2012 -0400

    Show 'Log out' in more situations
    
    When the current user is a remote account, or a we are logged in
    as root, we should always show 'Log out'.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686736

 js/ui/userMenu.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
index eb6b1e3..45a2240 100644
--- a/js/ui/userMenu.js
+++ b/js/ui/userMenu.js
@@ -619,10 +619,12 @@ const UserMenuButton = new Lang.Class({
 
     _updateLogout: function() {
         let allowLogout = !this._lockdownSettings.get_boolean(DISABLE_LOG_OUT_KEY);
+        let systemAccount = this._user.system_account;
+        let localAccount = this._user.local_account;
         let multiUser = this._userManager.has_multiple_users;
         let multiSession = Gdm.get_session_ids().length > 1;
 
-        this._logoutItem.actor.visible = allowLogout && (multiUser || multiSession);
+        this._logoutItem.actor.visible = allowLogout && (multiUser || multiSession || systemAccount || !localAccount);
     },
 
     _updateLockScreen: function() {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]