-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Fri, Jan 17, 2014 at 01:01:11PM +0900, Olaf Meeuwissen wrote: > Yves-Alexis Perez writes: > > >> > But in any case, setting LANG in .xsessionrc doesn't make much sense > >> > imho. > >> > >> Care to explain why? For me the correct LANG value is essential to get > >> my input method editor to work correctly (or so it seems). > >> # Of course, setting it in ~/.dmrc works for me but I'd like to know why > >> # I should set it there too. > > > > The way I see it (as I already explained), you select the wanted locale > > (LANG) in the greeter language selector (and it gets saved to .dmrc for > > later). Then, if you need to “correct” (for LC_MESSAGES for example) you > > can do it un .xsessionrc. > > The greeter language selector does not seem to set LANG.
The greeter doesn't set anything, it gets the menu selection and gives it to lightdm. > At the very > beginning of the /etc/X11/Xsession script LANG=C. Well, this one is a problem, it's should not be the case (and it's not the case for me on any of my box). > FWIW, lightdm seems to be exporting GDM_LANG, see src/seat.c in the > configure_session() function. Indeed, I missed that. > I see it does the same for GDMSESSION. > Are these variables GTK+ or GNOME specific? My guess is that they get used by GNOME applications. > If the latter, then maybe > lightdm shouldn't be exporting these, but what do I know? > Just an idea, but why not simply export LANG instead (or as well)? If you look really really hard, you'll see that LANG is set on the previous line. > > I'm off nuking GDM_LANG (and maybe GDMSESSION) in my ~/.xsessionrc and > see what breaks ;-) Since lightdm set GDM_LANG to the exact same value as LANG, I fail to see why it's not set to the correct value at the beginning of /etc/X11/Xsession, but at least that gives you something to look at. Regards, - -- Yves-Alexis Perez -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBCgAGBQJS2O/2AAoJEG3bU/KmdcCl5WoH/25KFl7axxZ88fQMMBbsvVoT OcOdUTCSjiL3nd7r16X6mMWRhDymYgFyEjdJjOwaOU0vwaoiaqrGVGWDtMBe/qjK o9ZyF7XG6dLR/7KvZYusxT3/+q0YeTXOMwqVUJ34Y9NmJuJYVi1kMPwQMU3bwpBM 1IyFJ5BNMhmyP/9Sl7hSKf2yLcKxqHIyJh7drrJFNjLd+rbHAGygyFQs2c8VzV2m oBQfk2ncoB5IFZEV5jrJQOlAeF8nAzsekQ+rs8VwOfU0vWW/xXyXOMmDrZsMXMlm kgaSBL9WUFUxOGG0v1OwuePoNNbOCmBKPE7o6zeHDiDrOtlC9b/BWJuZjf1d3LY= =n5ub -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org