[gdm] daemon: drop GDM_KEYBOARD_LAYOUT environment variable



commit 8a06ffc512c3bf2c6e04e19cddb67d1586d4c3af
Author: Ray Strode <rstrode redhat com>
Date:   Thu Jan 27 11:31:36 2011 -0500

    daemon: drop GDM_KEYBOARD_LAYOUT environment variable
    
    I just noticed commit
    4b177ed3c1998d9cd2f203f5c635b3f73ca4aecd reversed
    the conditional and that was many, many moons ago, so
    the code is essentially useless.
    
    Drop it.

 daemon/gdm-session-direct.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/daemon/gdm-session-direct.c b/daemon/gdm-session-direct.c
index 223f6f4..a7d77e3 100644
--- a/daemon/gdm-session-direct.c
+++ b/daemon/gdm-session-direct.c
@@ -2071,13 +2071,6 @@ setup_session_environment (GdmSessionDirect *session)
                                                      "GDM_LANG",
                                                      get_language_name (session));
 
-        if (strcmp (get_layout_name (session),
-                    get_default_layout_name (session)) == 0) {
-                gdm_session_direct_set_environment_variable (session,
-                                                             "GDM_KEYBOARD_LAYOUT",
-                                                             get_layout_name (session));
-        }
-
         gdm_session_direct_set_environment_variable (session,
                                                      "DISPLAY",
                                                      session->priv->display_name);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]