The problems for existing solutions are:
1. gdm deliberately omit ~/.xsession, so this only works if you use
startx. This 'feature' is quite notorious.
2. ~/.profile might not be read in some cases.
3. ~/.bash_profile won't be read if you're not using bash.
4. different distros all have their own way to set system locales. For
example, Fedora, Debian, and ArchLinux all uses different ways for
this, and the locale used under console is not necessarily suitable
for desktop environments.
5. if you use xinit rather than startx, will ~/.xsession be read? this
could happen if you're using slim.
6. Things can always work correctly if the users can edit proper
config files appropriately, but this is geek-friendly.

To be short, there is no reliable way to configure language used in
desktop environment
So the best place to do it is in the session manager.
Besides, if we have a well-defined place to set the locales, this can
of course be set in a GUI config dialog since we know clearly which
config file to change, though this can cause some confusions for gdm
users since gdm has its own language settings.

However having a clear way to let lxsession set some environment
variable on startup is good since it can always work, and the users
don't need to figure out which config file to edit.

On Fri, Jul 10, 2009 at 4:16 AM, Jürgen Hötzel<[email protected]> wrote:
> On Thu, Jul 09, 2009 at 07:00:42PM +0200, YUP wrote:
>> Hi,
>>
>> > Besides, I have some new ideas for lxsession.
>> > Maybe lxsession should also set LC_ALL, LANG, and LANGUAGE for the
>> > users before trying to load the rest of the desktop environment? Or it
>> > will be better to set this in other places like gdm or startlxde?
>>
>> I think it is not good when two daemons, lxsession and gdm, set the same
>> or different language environments. As usual users use gdm, kdm, xdm or
>> even startlxde on a start, so it is enough to set language there, not
>
> Locale settings and other environment variables are set in system init
> scripts and can be customized via .xsession. If they are overridden in
> lxsession most users will be confused. Also X-Clients started before
> lxsession will use different locale settings.
>
> Jürgen
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Lxde-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lxde-list
>

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to