[Xfce4-commits] <xfce4-session:master> Fix GDM_LANG usage to be compatible with GDM3 (bug #7400).

Jérôme Guelfucci noreply at xfce.org
Wed Mar 23 22:16:01 CET 2011


Updating branch refs/heads/master
         to 78e7b625743de55903a3211d618fb62841119020 (commit)
       from bcd15e760f4d209beeb3497d8c99325888e0ee99 (commit)

commit 78e7b625743de55903a3211d618fb62841119020
Author: Panu Matilainen <pmatilai at laiskiainen.org>
Date:   Wed Mar 23 22:13:40 2011 +0100

    Fix GDM_LANG usage to be compatible with GDM3 (bug #7400).

 xfce4-session/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xfce4-session/main.c b/xfce4-session/main.c
index b8f57d3..0466f48 100644
--- a/xfce4-session/main.c
+++ b/xfce4-session/main.c
@@ -103,7 +103,7 @@ setup_environment (void)
 
   /* this is for compatibility with the GNOME Display Manager */
   lang = g_getenv ("GDM_LANG");
-  if (lang != NULL)
+  if (lang != NULL && strlen (lang) > 0)
     {
       xfce_setenv ("LANG", lang, TRUE);
       xfce_unsetenv ("GDM_LANG");



More information about the Xfce4-commits mailing list