From 1314559833a7fa18b033abd90265eb587f870b57 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 15 Mar 2011 15:22:20 -0400 Subject: [PATCH] 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 file changed, 4 deletions(-) diff --git a/js/ui/polkitAuthenticationAgent.js b/js/ui/polkitAuthenticationAgent.js index 8834c0e43..22535b785 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 }));