If I log in to my XFCE desktop using slim all my locale settings are overwritten with 'POSIX' however if I use startx my locale settings are preserved ('en_GB.UTF-8'). My issue is very similar to this: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=441630 Which allegedly got fixed in 1.3.0 but it looks like it may have been fixed in the Debian packaging rather than upstream. Reproducible: Always Steps to Reproduce: 1. Set a preferred locale in /etc/env.d/02locale e.g. en_GB.UTF-8 2. use slim to login 3. execute locale in a terminal Actual Results: locale displays 'POSIX' for all keys Expected Results: locale should display 'en_GB.UTF-8' for all keys
Created attachment 266143 [details] cave (paludis) info for x11-misc/slim
( Couldn't you just set up an .xsession to set your preferred locale? )
(In reply to comment #2) > ( Couldn't you just set up an .xsession to set your preferred locale? ) Possibly, although I'm not 100% sure how - can I just fill it with export commands and everything will just work? But I would say this is a workaround rather than a fix
Slim as of 1.3.2 uses an Xsession script by default now, as you may already know. This script does not necessarily behave the same as 'startx'. It's possible that your locale and such might be getting overwritten, or not loaded, based on entries in .profile/.xprofile , etc.? Could you post what you're using as your default session? (ie, your ~/.xsession contents, or what your XSESSION environment variable is set to)?? That said we can certainly look into what debian did for 1.3.0 as well to see if it was included in upstream or not.
Ok, thanks to the pointers to the Xsession stuff I've fixed my issue. In summary I had the login_cmd in my /etc/slim.conf set up to be: exec ck-launch-session startxfce4 As recommended here: http://forums.gentoo.org/viewtopic-t-858965.html I changed the login_cmd back to default (exec /bin/bash -login /usr/share/slim/Xsession %session) and changed /etc/xdg/xfce4/xinitrc as recommended in the same thread (last post, page 1) and everything now works (locale correct, power management and mounting) I'm assuming it's the -login switch that sets up the locale properly. I'm guessing I can just close this? Thanks for your help