Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359181 - x11-misc/slim-1.3.2-r3 ignores locale settings
Summary: x11-misc/slim-1.3.2-r3 ignores locale settings
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 16:19 UTC by Scott Thomson
Modified: 2011-03-17 14:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cave (paludis) info for x11-misc/slim (slim.info,15.43 KB, text/plain)
2011-03-16 16:21 UTC, Scott Thomson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Thomson 2011-03-16 16:19:46 UTC
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
Comment 1 Scott Thomson 2011-03-16 16:21:50 UTC
Created attachment 266143 [details]
cave (paludis) info for x11-misc/slim
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-16 16:45:18 UTC
( Couldn't you just set up an .xsession to set your preferred locale? )
Comment 3 Scott Thomson 2011-03-16 16:51:29 UTC
(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
Comment 4 Ian Stakenvicius (RETIRED) gentoo-dev 2011-03-16 17:48:29 UTC
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.
Comment 5 Scott Thomson 2011-03-17 11:26:38 UTC
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