[systemd-devel] [PATCH] [RFC]logind: set locale in user sessions

Bastien Nocera hadess at hadess.net
Fri Jan 4 08:36:25 PST 2013


On Fri, 2013-01-04 at 11:23 -0500, Bill Nottingham wrote:
> Lennart Poettering (lennart at poettering.net) said: 
> > Bill Nottingham (notting at redhat.com) said:
> > > > I am tempted to just merge the patch. The discussion on xdg-devel can
> > > > happen after we commited the code. In fact, moving that to PAM upstream
> > > > can happen at a later point too, if it is desirable...
> > > > 
> > > > Also, given that this code is a NOP if ~/.config/locale.conf doesn't
> > > > exist I think this is relatively straightforward to adopt...
> > > > 
> > > > Anybody else has opinions on this? Kay, Michal? Otherwise I'll just
> > > > merge it... Tom.  can you bring standardization of ~/.config/locale.conf
> > > > up on xdg-devel?
> > > 
> > > FWIW, GNOME stores this in the accounts service, outside of the user's
> > > configuration heirarchy entirely, for access from the display manager and
> > > other mechanisms.
> > 
> > Does gdm actually use that? Old versions used to have a language
> > drop-down box. But I don't think new versions still have that?

It's necessary to have that outside the user's config option to allow
gdm to read it to set the upcoming session's locale, allow other users
to see the languages used by others (used in the Region & Language
panel, where the other users' languages are prominent choices), and
allow changing the user's language by the system administration tools
(used in the User Accounts panel).

> > It might indeed be a good idea to be able to determine the user locale
> > without having to log-in/mount the home directory. Dunno. 
> > 
> > /me doesn't know anymore what to do...
> 
> CC'ing Bastien - I believe he's aware of which of GDM and the shell use this
> setting and how.
> 
> Bill




More information about the systemd-devel mailing list