Hello Gunnar, Gunnar Hjalmarsson [2010-12-09 1:49 -0000]: > > There's another aspect to this: The upstream gdm Xsession script > > already sets $LANG. With the changes that you have in mind, it needs > > to stop doing that; with separate .d directory scripts, you can only > > additionally set $LC_*, but the original $LANG value is lost. > > I believe that I had taken care of both those aspects. The code in > /etc/profile.d/, which would have run before the spot where Xsession > sets $LANG, looked like this: > > if [ -n "$GDM_LANG" ]; then > export GDM_LANGUAGE=$GDM_LANG > unset GDM_LANG > fi
Ah, I haven't paid attention to this bit before (I didn't review the code in that detail yet, just took a look at the structure so far). That would certainly have done the trick, although it's quite non-obvious to someone who just reads the /etc/gdm/Xsession script. > I didn't know that other DMs use the .dmrc file At least lxdm and kdm do, I didn't check/know about others. But exactly because it's a shared config file, I'm not too worried about adding new fields to it. DMs should just ignore fields which they can't deal with, and the .ini file format is meant for this. We just need to pay attention to not change the semantics of existing fields, which is why I'm so insistant on keeping Language= as a valid locale. > > I'd rather add a new LanguageList (or similar) field to it on > > demand. > > Actually I played with that thought when preparing the current branches, > but concluded that there is no need. Convince me that I'm wrong, and > I'll be happy to do some copy-n-pasting again. ;-) Oh, don't get me wrong -- if we can make-do with the existing Language field, so much the better! I just had the impression that we also wanted to store a list of languages for the $LANGUAGE variable, in which case we'd probably need a new field. > Sounds reasonable to me. Is there a more appropriate place than bug > reports to hold this kind of complex (at least for a newbie like me) > design discussions? It's good enough IMHO. Well, an even better one is being in a room together with a whiteboard :) It just became too complex for a regular sponsor to pick up. Thanks, Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/553162 Title: Set $LANGUAGE if the user picks a different locale in gdm, so that language-selector and gdm stop disagreeing -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs