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

Lennart Poettering lennart at poettering.net
Thu Jan 3 14:54:12 PST 2013


On Thu, 03.01.13 22:25, Tollef Fog Heen (tfheen at err.no) wrote:

> 
> ]] Lennart Poettering 
> 
> > a) This really sounds like something to discuss on xdg-devel. This
> >    probably deserves adoption by the desktop environments, much like
> >    .config/user-dirs.dirs. i.e. GNOME should really write that file when
> >    the user reconfigures the locale settings.
> > 
> > b) Maybe this is something to add to the PAM package upstream? That
> >    said, it would be kinda symmetric to /etc/locale.conf which we handle
> >    in systemd, so maybe not?
> > 
> > c) If we maintain it in systemd, maybe still split this off into its own
> >    pam module?
> 
> This sounds like you're trying to duplicate pam_env.

Hmm, you might have a point there. 

Or maybe not? The overriding semantics are different, aren't they?
pam_env would always merge the env vars, while the i18n logic would drop
all system vars if at least one user var is set, since we definitely
don't want to merge LC_WALDO= from the system with LC_FOOBAR= from the
user, or in other words: we either should use one set of vars, or the
other, but never a mix...

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list