summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Sanchez Prada <mario@endlessm.com>2014-05-06 11:03:45 -0700
committerMario Sanchez Prada <mario@endlessm.com>2017-09-18 18:12:05 +0100
commit14cae3f93891e454a8b1a476626fa397dea63d6e (patch)
treedd984a716a505a8632f541aef583d41e1744ae85
parent9ab95809ddd201c2c8b030a814287c3be73d03be (diff)
downloadgdm-14cae3f93891e454a8b1a476626fa397dea63d6e.tar.gz
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
-rw-r--r--daemon/gdm-session.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 063c5a2d..eece5fb4 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);