[Xfce4-commits] <xfce4-session:nick/shutdown-cleanup> Don't show the real user name in logout dialog if not set.
Nick Schermer
noreply at xfce.org
Tue Jan 17 19:42:01 CET 2012
Updating branch refs/heads/nick/shutdown-cleanup
to fa5311f74d9719a5782f93491c81059d29648fde (commit)
from aba69bdd0a774d80495a0db8b6bb00aca62fd243 (commit)
commit fa5311f74d9719a5782f93491c81059d29648fde
Author: Nick Schermer <nick at xfce.org>
Date: Tue Jan 17 19:39:03 2012 +0100
Don't show the real user name in logout dialog if not set.
xfce4-session/xfsm-logout-dialog.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/xfce4-session/xfsm-logout-dialog.c b/xfce4-session/xfsm-logout-dialog.c
index eb2812c..05c488f 100644
--- a/xfce4-session/xfsm-logout-dialog.c
+++ b/xfce4-session/xfsm-logout-dialog.c
@@ -176,7 +176,9 @@ xfsm_logout_dialog_init (XfsmLogoutDialog *dialog)
/* label showing the users' name */
username = g_get_real_name ();
- if (username == NULL || *username == '\0')
+ if (username == NULL
+ || *username == '\0'
+ || strcmp ("Unknown", username) == 0)
username = g_get_user_name ();
label_str = g_strdup_printf (_("Log out %s"), username);
More information about the Xfce4-commits
mailing list