Setting LANG parameters

Derek Broughton news at pointerstop.ca
Tue Sep 25 13:25:16 UTC 2007


Dotan Cohen wrote:

> Where does one store language parameters that programs (specifically
> wine) use? I have been putting "export LC_ALL=he_IL.UTF-8" in
> ~/.bashrc, but now I know that only Konsole uses this file. What file
> do other programs use? Note that I use KDE, not Gnome, if that
> matters. And yes, I do have the proper settings in Kcontrol, but wine
> does not use the KDE config files.

For Wine, I'd just use:

# LC_ALL=he_IL.UTF-8 wine PROGRAM

Far more than konsole use .bashrc - as it says, it's invoked for all
non-login shells.  .bash_profile is invoked for login shells, and may
invoke .bashrc (iirc, that's commented out in the default .bash_profile),
so might be a better place for shell environment variables.

Then there's ~/.xsession, which should be invoked by all X sessions (if it
exists).  I think you need to either put your variable in there
or .bash_profile.
-- 
derek





More information about the ubuntu-users mailing list