[FreeNX-kNX] GNOME per user language setting and NX

Hristo Benev hristo.benev at waveroad.ca
Fri Aug 25 13:16:09 UTC 2006


Paul van der Vlis wrote:
> Hristo Benev schreef:
>   
>> Paul van der Vlis wrote:
>>
>>     
>>> Paul van der Vlis schreef:
>>>  
>>>
>>>       
>>>> Hristo Benev schreef:
>>>>
>>>>    
>>>>
>>>>         
>>>>> Does somebody know how User language could be changed (not system wide) 
>>>>> in GNOME?
>>>>>
>>>>> I use FreeNX server  freenx-0.5.0-8.c4 + NXClient 2.0.0-93 on CentOS 4.3
>>>>>
>>>>> I found this setting in KDE, but majority of apps I use are from GNOME.
>>>>>
>>>>> When I log locally I can change the language, but it does not work with 
>>>>> NX (setting are not kept). Example: I set it locally by default in 
>>>>> French (My system wide is English), and when I login via NX I receive 
>>>>> English interface.
>>>>>
>>>>> Any suggestions?
>>>>>      
>>>>>           
>>>> What I do is the following:
>>>>
>>>> In /etc/nxserver/node.conf I change the COMMAND_START_GNOME variabele
>>>> into a script. I use: /usr/local/bin/gnome-start
>>>>
>>>> In this script I can change anything for the session I like.
>>>>
>>>> --------
>>>> #!/bin/bash
>>>> umask 0002
>>>> export TESTVAR=test21
>>>> /usr/bin/X11/setxkbmap -rules xfree86 -model pc104 -layout us -option ""
>>>> # /usr/lib/control-center/gnome-settings-daemon &
>>>> /usr/bin/gnome-session
>>>> --------
>>>>
>>>> You could also add something like:
>>>> ~/.gnomerc
>>>>    
>>>>         
>>> This is wrong. I've tested it and this works:
>>> . ~/.gnomerc
>>>
>>> In ~/.gnomerc you can use "export" to set the environment-variables.
>>>
>>> With regards,
>>> Paul.
>>>
>>>
>>>
>>>
>>> ________________________________________________________________
>>>     Were you helped on this list with your FreeNX problem?
>>>    Then please write up the solution in the FreeNX Wiki/FAQ:
>>>  http://openfacts.berlios.de/index-en.phtml?title=FreeNX_FAQ
>>>         Don't forget to check the NX Knowledge Base:
>>>                 http://www.nomachine.com/kb/ 
>>>
>>> ________________________________________________________________
>>>       FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>>>      https://mail.kde.org/mailman/listinfo/freenx-knx
>>> ________________________________________________________________
>>>  
>>>       
>> Hi,
>>
>> I could not find either .profiles or .gnomerc in my system (CentOS 4.3 
>> ~= RHEL 4 U3) so I created .gnomerc and put export LANG=fr_FR.euro inside.
>>     
>
> It is normal that you do not have a .gnomerc by default.
>
>   
>> Then I rebooted the machine and LANG was en_US.UTF-8.
>>     
>
> My experience with Debian is, that when you login using GDM .gnomerc is
> read. But not when you login using NX. NX will use it when you put the
> following in the script to start Gnome:
> . ~/.gnomerc
>
>   
>> When I do export from terminal it sets the variable, but this does not 
>> change apps behavior.
>>     
>
> This is correct.
>
>   
>> I can set default language logging locally, but when i log via NX it 
>> gets system default values, not user ones.
>>     
>
> I told you to make a script and to change /etc/nxserver/node.conf. Did
> you do that?
>
>   
>> The problem is only with GNOME - KDE has user language setup and it uses 
>> it with NX login.
>>
>> I did not change anything in NX setup - rpm installation
>>
>>     
>
> With regards,
> Paul van der Vlis.
> ________________________________________________________________
>      Were you helped on this list with your FreeNX problem?
>     Then please write up the solution in the FreeNX Wiki/FAQ:
>   http://openfacts.berlios.de/index-en.phtml?title=FreeNX_FAQ
>          Don't forget to check the NX Knowledge Base:
>                  http://www.nomachine.com/kb/ 
>
> ________________________________________________________________
>        FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>       https://mail.kde.org/mailman/listinfo/freenx-knx
> ________________________________________________________________
>   
I did not change node.conf, maybe this is the problem.

Currently I do not have lot of time(this is production system), but I'll 
do it and will report later.

For now I use KDE for other language users and for GNOME apps I modified 
command line with LANG=..... in front.

It works for now will try later to fix it permanently.

Thanks for the help.

-- 
Hristo Benev
IT Manager

WAVEROAD
Partners in Telecommunications

514-935-2020 x225 T
514-935-1001 F
www.waveroad.ca
hristo.benev at waveroad.ca




More information about the FreeNX-kNX mailing list