[Xfce4-commits] <xfce4-session:master> Don't show the real user name in logout dialog if not set.

Nick Schermer noreply at xfce.org
Sat Mar 24 22:50:08 CET 2012


Updating branch refs/heads/master
         to 2aeac5b2c2fbe329d131fe0a102a700b18d1a2d8 (commit)
       from 914ced84b10aeb205b6dadc42f2a61f7e4b18252 (commit)

commit 2aeac5b2c2fbe329d131fe0a102a700b18d1a2d8
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