On 09/01/2014 10:25 PM, Fernando de Oliveira wrote: > This is an old problem I faced, when used LXDM (stopped with 0.4.1, I > think). Today, I don't normally use a DM. > > Problem: LXDM always start as if LANG=C. > > I change in the corresponding place in the screen, after reboot, C again. > > In the past I solved it, by modifying the start section of the boot > script like this: > > start) > env LANG=pt_BR.utf8 /usr/sbin/lxdm -d > ;; > > It is not a good general solution, worse yet for the book. > > Now, I found another solution: > > sed -i '1a\\nexport LANG=pt_BR.UTF-8' /usr/sbin/lxdm > > because this is a script calling the true program, lxdm-binary. > > > If someone (Christopher?) has a better solution, I would much appreciate > to learn, please. > > If not, I think I need to introduce one > > <para> (as optional), with an explanation</para> > > and then > > <screen>><userinput>sed -i '1a\\nexport <your_LANG>' > /usr/sbin/lxdm</userinput></screen> > > Any help would be much appreciated. > > Thanks. >
I haven't built LXDM, but since you say the lxdm is a wrapper script, you can make it source /etc/profile. On systemd systems, systemd-localed is responsible for setting the locale for everything but tty environment, and that is manually handled by /etc/profile.d script. -- Note: My last name is not Krejzi.
signature.asc
Description: OpenPGP digital signature
-- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
