Setting locale for user

environment-variablesi18nlocale

I'd like to set a locale for my user different than system locale.

By putting export LANG=en_US.utf8 in .bashrc I could do that for the shells, but still it's not working for applications not started via a shell (i.e. the desktop environment, LXDE, which is started through GDM3).

Is there any way to set a different default locale (used by any kind of application, even if not started via bash) for my user?

Best Answer

X login is annoyingly inconsistent about which startup file names are used. On the system I'm using you would just need to modify $HOME/.xsessionrc. But it does vary. I generally put my environment variable settings in a separate file and source that from .profile and .xsessionrc.

If .xsessionrc does not work for you, check the documentation or read the scripts in /etc/X11/.

Related Question