Re: How to set LANG variable for X windows sessions started by XDM?
Wojciech Zabolotny wrote:
>Hi All,
>I need to set the LANG, LC_ALL and LC_CTYPE variables for X sessions started
>by xdm in my system. How to do it?
>When I set it in the /etc/profile, it is set in the xterm's but not in other
>programs started eg. by menu.
>Should it be set in the /etc/X11/xdm/Xstartup ? (or Xstartup_0 ?), I've
>checked it, but without success...
>Setting in /etc/init.d/xdm doesn't work either :-(.
>
>Is there any place where I could set IN ONE PLACE the correct default
>i18n values for both X and console applications?
xdm runs .xsession
startx runs .xinitrc
so I have these files hard-linked to give me the same environment whichever
I use.
When you login, you should have .bash_profile run
So, I put assignments in /etc/environment and include `. /etc/environment'
in both .xsession and .bash_profile. (Make sure the variables are exported.)
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"God be merciful unto us, and bless us; and cause his
face to shine upon us." Psalms 67:1
Reply to: