[Pkg-xfce-devel] Bug#798967: Bug#798967: lightdm: Does not source /etc/environment through pam_env

Benjamin Cama benjamin.cama at telecom-bretagne.eu
Tue Sep 15 09:24:25 UTC 2015

Hi Yves-Alexis,

Le lundi 14 septembre 2015 à 21:42 +0200, Yves-Alexis Perez a écrit :
> I don't remember exactly from where I picked the change (I think it was
> from gdm), but indeed, there's definitely a mistake.
> /etc/default/locale should be only added, not replace completely the
> thing. As far as I can tell, other pam config file use something like:
> session       required   pam_env.so readenv=1
> session       required   pam_env.so readenv=1 envfile=/etc/default/locale   
> Can you check that it works for you and report back?

I tested your change, without the "readenv=1" that seems useless
according to pam_env(8) (even if it is indeed used by a lot of services
in /etc/pam.d), and it works (logout + "invoke-rc.d lightdm restart" at
each try, to be sure). The "auth" to "session" change looks right, too,
now that you point it out. Also, please note that even without the
second line, my locale get set correctly… but every other service seems
to do it, so…

Thanks for your time looking into this problem and fixing it!
Benjamin Cama <benjamin.cama at telecom-bretagne.eu>

More information about the Pkg-xfce-devel mailing list