Comment 3 for bug 1019314

Revision history for this message
Yves-Alexis Perez (corsac) wrote : Re: Re: [Pkg-xfce-devel] Bug#679386: lightdm: Language selection is ignored in session, $LANG is system default

After searching a bit, it seems that this was done on purpose: http://bazaar.launchpad.net/~lightdm-team/lightdm/1.2/revision/1438/src/session.c seems to indicate that set_locale() (and the call to user_get_locale()) was removed because it would override PAM settings.

I'm a bit unsure how people are supposed to set those settings in PAM, but at least from an user point of view, it's now broken.

In 1.0, an user could select the locale in LightDM greeter, it was set for the session and saved in .dmrc. Then for the following sessions, .dmrc was read and the locale set to the user choice.

In 1.2, when the user selects the locale in LightDM greeter, it's set for the session and saved in .dmrc. Then for the following sessions, nothing loads .dmrc and the locale is not correctly set.

I'm not completely against switching from .dmrc to PAM stuff, as long as it's still convenient for the user. So imho either lightdm is able to save the user choice to PAM, or the .dmrc handling has to be back. And it doesn't need to override PAM, it can just set the locale if PAM doesn't have anything for the user.