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

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


Updating branch refs/heads/xfce-4.8
         to 3bba8eb773a96339fb841c76b04f2d4fd3317814 (commit)
       from a46c6d273e983d06adfef71af300648a67dab46c (commit)

commit 3bba8eb773a96339fb841c76b04f2d4fd3317814
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 ff6e324..fcf69f8 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