[gdm] gdm-session: always pass down user saved language



commit 14cae3f93891e454a8b1a476626fa397dea63d6e
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Tue May 6 11:03:45 2014 -0700

    gdm-session: always pass down user saved language
    
    There's a bug when changing the language of the login screen to a different
    one than the user session's language, which causes the new language to be
    used both in the login screen AND the user session if you simply logout and
    then re-login without rebooting. Restarting the machine after that point
    normalizes things, getting the new language used only in the login screen
    but not in the user session.
    
    Making sure that the user language is always saved by the session seems
    without checking whether is the same than the default language fixes this.
    
    Based on a patch by Felipe Erias Morandeira <femorandeira igalia com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786422

 daemon/gdm-session.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 063c5a2..eece5fb 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -906,8 +906,7 @@ worker_on_saved_language_name_read (GdmDBusWorker          *worker,
 {
         GdmSession *self = conversation->session;
 
-        if (strlen (language_name) > 0 &&
-            strcmp (language_name, get_default_language_name (self)) != 0) {
+        if (strlen (language_name) > 0) {
                 g_free (self->priv->saved_language);
                 self->priv->saved_language = g_strdup (language_name);
 


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