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
This commit is contained in:
Ray Strode 2011-03-15 15:22:20 -04:00
parent 735397aa89
commit 1314559833

View File

@ -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 }));