On Fri, Sep 28, 2007 at 21:00:26 -0400, Frédéric Brière wrote: > When I log in through xdm, I don't get $LANG set from /etc/environment > as it is when logging in through login/ssh/etc. > > Peeking into /proc, I see that the xdm, X and -:0 processes all have > their $LANG set correctly, but x-window-manager doesn't. This is > confirmed by replacing the latter with a shell script; see the attached > output, which is indeed missing $LANG. > > (I'm quite a bit intrigued, as I did see that xdm tries to play nice > with pam_env when grepping the code. Maybe the bug lies elsewhere in > the X universe, but it's too big a universe for me to comprehend, and > things work fine when running startx, so I'm filing against this > package. Sorry if I'm wrong.) > I can't reproduce this (xdm 1:1.1.7-1): $ cat /etc/default/locale LC_CTYPE="en_US.UTF-8" FOO=bar $ tr '\0' '\n' < /proc/6567/cmdline /usr/bin/fluxbox $ tr '\0' '\n' < /proc/6567/environ |grep FOO FOO=bar
I'm not sure what's going wrong in your case. Can you add a call to printenv in ~/.xsessionrc or ~/.xsession and see what you get in .xsession-errors after logging in? Cheers, Julien