1
0
forked from pool/xfce4-session
xfce4-session/xfce4-session-4.8.1-fix-gdm_lang-usage.patch
Sascha Peilicke ec04e69914 Accepting request 72237 from X11:xfce
- added xfce4-session-4.8.1-fix-gdm_lang-usage.patch which fixes
  GDM_LANG usage to be compatible with GDM3 (bnc#694203, bxo#7400)

OBS-URL: https://build.opensuse.org/request/show/72237
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfce4-session?expand=0&rev=38
2011-05-31 12:46:26 +00:00

14 lines
433 B
Diff

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");