[gnome-shell] polkit: drop gdmuser naming workaround



commit 1314559833a7fa18b033abd90265eb587f870b57
Author: Ray Strode <rstrode redhat com>
Date:   Tue Mar 15 15:22:20 2011 -0400

    polkit: drop gdmuser naming workaround
    
    The polkit authentication dialog contains logic for
    falling back to dispalying a user's username if that
    user has no real name.
    
    This logic is no longer needed because gdmuser does it
    internally now.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=644765

 js/ui/polkitAuthenticationAgent.js |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/polkitAuthenticationAgent.js b/js/ui/polkitAuthenticationAgent.js
index 8834c0e..22535b7 100644
--- a/js/ui/polkitAuthenticationAgent.js
+++ b/js/ui/polkitAuthenticationAgent.js
@@ -108,10 +108,6 @@ AuthenticationDialog.prototype = {
             userRealName = _('Administrator');
         }
 
-        // Work around Gdm.UserManager returning an empty string for the real name
-        if (userRealName.length == 0)
-            userRealName = userName;
-
         if (userIsRoot) {
             let userLabel = new St.Label(({ style_class: 'polkit-dialog-user-root-label',
                                             text: userRealName }));



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