[Bug 1662031] Re: Switching language and format broken

2018-07-18 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~canonical-desktop-team/ubuntu/+source/gdm3/+git/gdm3/+merge/349818 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1662031 Title: Switching la

[Bug 1662031] Re: Switching language and format broken

2018-06-29 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~canonical-desktop-team/ubuntu/+source/gdm3/+git/gdm3/+merge/348784 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1662031 Title: Switching la

[Bug 1662031] Re: Switching language and format broken

2018-05-25 Thread Bug Watch Updater
** Changed in: gdm Status: Unknown => Expired ** Changed in: gdm Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1662031 Title: Switching language and format b

[Bug 1662031] Re: Switching language and format broken

2017-10-17 Thread Gunnar Hjalmarsson
** Also affects: gdm via https://bugzilla.gnome.org/show_bug.cgi?id=788762 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1662031 Title: Switching lan

[Bug 1662031] Re: Switching language and format broken

2017-10-11 Thread Launchpad Bug Tracker
This bug was fixed in the package gdm3 - 3.26.1-3ubuntu2 --- gdm3 (3.26.1-3ubuntu2) artful; urgency=medium * debian/patches/ubuntu_dont_set_language_env.patch: - Don't run the set_up_session_language() function, since it overrides variable values set by ~/.pam_environment

[Bug 1662031] Re: Switching language and format broken

2017-10-10 Thread Olivier Tilloy
See conversation on the upstream bug report. It turns out calling set_up_session_language() earlier (e.g. in on_setup_complete_cb) doesn't fix the problem: gdm_session_start_session() calls send_environment(), which overrides the environment set up by pam with the values from /etc/default/locale ag

[Bug 1662031] Re: Switching language and format broken

2017-10-10 Thread Sebastien Bacher
** Changed in: gdm3 (Ubuntu Artful) Assignee: Sebastien Bacher (seb128) => Olivier Tilloy (osomon) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1662031 Title: Switching language and format bro

[Bug 1662031] Re: Switching language and format broken

2017-10-10 Thread Olivier Tilloy
I filed https://bugzilla.gnome.org/show_bug.cgi?id=788762 to continue the conversation upstream. ** Bug watch added: GNOME Bug Tracker #788762 https://bugzilla.gnome.org/show_bug.cgi?id=788762 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed t

[Bug 1662031] Re: Switching language and format broken

2017-10-09 Thread Sebastien Bacher
the function has been added to fix https://bugzilla.gnome.org/show_bug.cgi?id=709105 ** Bug watch added: GNOME Bug Tracker #709105 https://bugzilla.gnome.org/show_bug.cgi?id=709105 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. ht

[Bug 1662031] Re: Switching language and format broken

2017-10-08 Thread Olivier Tilloy
And I can confirm that the packages in Gunnar's PPA appear to fix the issue here, without any visible regression, from my limited testing. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1662031 Title:

[Bug 1662031] Re: Switching language and format broken

2017-10-06 Thread Gunnar Hjalmarsson
Yep, suspicious indeed. I built gdm3 with that function disabled: https://launchpad.net/~gunnarhj/+archive/ubuntu/gdm3 And yes, that's it. You nailed it Olivier; thanks a lot! Why didn't I see it when looking at that file many months ago... :( Anyway, I have submitted a MP. ** Changed in: gdm3

[Bug 1662031] Re: Switching language and format broken

2017-10-06 Thread Launchpad Bug Tracker
** Branch linked: lp:~gunnarhj/gdm/language-switching -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1662031 Title: Switching language and format broken To manage notifications about this bug go to:

[Bug 1662031] Re: Switching language and format broken

2017-10-06 Thread Olivier Tilloy
I added a FOOBAR variable to both ~/.pam_environment and /etc/default/locale, with different values in each file, and after logging in the value is the one from ~/.pam_environment. So I don't think gdm sources /etc/default/locale after ~/.pam_environment. However variables LANG, LANGUAGE and LC_* a

[Bug 1662031] Re: Switching language and format broken

2017-10-06 Thread Olivier Tilloy
/usr/share/language-tools/save-to-pam-env is the script that writes to ~/.pam_environment with an incorrect syntax. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1662031 Title: Switching language an

[Bug 1662031] Re: Switching language and format broken

2017-10-06 Thread Olivier Tilloy
/etc/pam.d/gdm-launch-environment is run as user gdm, so it's not what we're interested in. /etc/pam.d/gdm-password appears to be what sets the environment upon user login. When adding some logging to that module, I'm seeing the following: pam_env(gdm-password:session): username=ubuntu pam_env(g

[Bug 1662031] Re: Switching language and format broken

2017-10-06 Thread Gunnar Hjalmarsson
Wonder if there is a problem with this code: https://git.gnome.org/browse/gdm/tree/daemon/gdm-session-worker.c#n993 @Steve: gdm3 seems to not read ~/.pam_environment. Do you possibly have an idea off the top of your head? -- You received this bug notification because you are a member of Ubuntu

[Bug 1662031] Re: Switching language and format broken

2017-10-06 Thread Olivier Tilloy
In /etc/pam.d/gdm-launch-environment: session requiredpam_env.so readenv=1 user_readenv=1 envfile=/etc/default/locale In pam_env.c (handle_env function), the env should be set from /etc/default/locale and then overridden by ~/.pam_environment. If I add the 'debug' parameter to the mod

[Bug 1662031] Re: Switching language and format broken

2017-10-06 Thread Olivier Tilloy
I didn't click "Apply System-Wide". When I changed the language in g-c-c /etc/default/locale was written to (LANG and LANGUAGE were updated). I agree that this is unexpected behaviour though, I wouldn't expect the current user's setting to be applied system-wide unless explicitly requested. -- Yo

[Bug 1662031] Re: Switching language and format broken

2017-10-06 Thread Gunnar Hjalmarsson
The /etc/default/locale file was not altered when I just tested on an updated artful. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1662031 Title: Switching language and format broken To manage not

[Bug 1662031] Re: Switching language and format broken

2017-10-06 Thread Gunnar Hjalmarsson
To clarify: I used the g-c-c interface to switch language. If I had clicked "Manage Installed Languages" to open Language Support and then clicked "Apply System-Wide", /etc/default/locale would have been updated too. But that 'does not count'. Language Support is available to work around the fact t

[Bug 1662031] Re: Switching language and format broken

2017-10-06 Thread Gunnar Hjalmarsson
Olivier: Is /etc/default/locale written to also?? That's not what Sebastien and I observed. I'll go to a (relatively) fresh artful install and recheck then. If that's the case, the issue may not be so urgent. But it's poor design, since it means that if a user changes language, s/he changes it for

[Bug 1662031] Re: Switching language and format broken

2017-10-06 Thread Olivier Tilloy
Testing in an up-to-date artful VM, when switching languages in g-c-c, both LANG and LANGUAGE are updated in both ~/.pam_environment and /etc/default/locale. That VM is an artful install that has been updated daily, not an upgrade from a previous release. -- You received this bug notification be

[Bug 1662031] Re: Switching language and format broken

2017-09-28 Thread Gunnar Hjalmarsson
If nobody figures out what makes the variables in ~/.pam_environment be overridden by the variables in /etc/default/locale, I'm thinking of an ugly hack which may work. ~/.pam_environment is maintained by /usr/share/language-tools/save-to- pam-env. In case of a GNOME desktop we could make that fil

[Bug 1662031] Re: Switching language and format broken

2017-09-27 Thread Will Cooke
** Also affects: gnome-control-center (Ubuntu Artful) Importance: Undecided Status: New ** Also affects: gdm3 (Ubuntu Artful) Importance: High Status: Confirmed ** Changed in: gdm3 (Ubuntu Artful) Assignee: (unassigned) => Sebastien Bacher (seb128) ** Changed in: gnome-c

[Bug 1662031] Re: Switching language and format broken

2017-09-19 Thread Gunnar Hjalmarsson
** Tags added: rls-aa-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1662031 Title: Switching language and format broken To manage notifications about this bug go to: https://bugs.launchpad

[Bug 1662031] Re: Switching language and format broken

2017-07-20 Thread Gunnar Hjalmarsson
This issue is present on an artful daily build as well. gdm3 somehow overrides variables set by ~/.pam_environment. (With lightdm it works as expected.) It should be noticed that the issue is present whether g-c-c or language-selector is used to change the display language. ** Changed in: gdm3 (U

[Bug 1662031] Re: Switching language and format broken

2017-02-12 Thread Gunnar Hjalmarsson
Did some testing on zesty. When I had switched to lightdm, language switching between already installed languages worked fine, so gdm3 seems to be the culprit. Haven't been able to spot the applicable code in the gdm3 source. Tried the attached patch, but it didn't help. If I set the variables in

[Bug 1662031] Re: Switching language and format broken

2017-02-07 Thread Jeremy Bicha
(There were some November 2015 commits too but they didn't look important) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1662031 Title: Switching language and format broken To manage notifications

[Bug 1662031] Re: Switching language and format broken

2017-02-07 Thread Jeremy Bicha
Gunnar, thanks for looking into this. See also bug 1631750. So I looked briefly at this today. By the time I filed that other bug, accountsservice hadn't really changed from xenial. gnome-settings-daemon doesn't look to me like it does stuff with language settings. gnome- control-center had been