Package: slimVersion: 1.3.6-4
I tried to set up my system so that I would have a different locale in X11 than
at the console, following the instructions in the Debian reference manual:
https://www.debian.org/doc/manuals/debian-reference/ch08.en.html#_specific_locale_only_under_x_window
Specifically, created a separate /etc/default/locale-x file and modified
/etc/pam.d/slim to point to it:
auth required pam_env.so readenv=1-auth required pam_env.so readenv=1
envfile=/etc/default/locale+# use separate locale config file for X11+auth
required pam_env.so readenv=1 envfile=/etc/default/locale-x #auth sufficient
pam_thinkfinger.so
Unfortunately, when I tried to log in, it didn't work, I still got the system
locale specified in /etc/default/locale instead.
I think the cause is the /etc/X11/Xsession.d/20slim_locale file. It seems this
was introduced to fix https://bugs.debian.org/440862 at the same time that pam
support was integrated (1.3.0-1).
I think that the /etc/X11/Xsession.d/20slim_locale file is actually
unnecessary; the pam_env.so line in /etc/pam.d/slim should already take care of
importing the locale settings.
If I remove/comment out /etc/X11/Xsession.d/20slim_locale, everything works as
expected, i.e. the X session has the locale specified in /etc/default/locale-x.