[X2go-dev] python-x2go questions when working on Ubuntu Sofware Center

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Sat May 28 01:25:59 CEST 2011


Hi Stéphane,
hi list,

@List: Stéphane and I have had a private discussion (SORRY!) and I  
have asked him to lead the discussion on the x2go-dev ML as it might  
be of interest for other X2go developers and advanced users... I'll  
quite the full mail around keyboard settings with X2go...

On Do 26 Mai 2011 23:05:39 CEST Stéphane Graber wrote:

> On Thu, 2011-05-26 at 22:51 +0200, Mike Gabriel wrote:
>> Hi Stéphane,
>>
>> On Do 26 Mai 2011 20:06:16 CEST Stéphane Graber wrote:
>>
>> > Yep, that was my problem actually as I can only find:
>> >  kblayout (str) - keyboard layout, e.g. us (default), de, fr, ...
>> >  kbtype (str) - keyboard type, e.g. pc105/us (default), pc105/de, ...
>> >
>> > But not kbvariant (or similar). Which means my two usual keyboard
>> > layouts won't work ...
>> >
>> > I'm using:
>> >  kblayout = us
>> >  kbtype = pc105
>> >  kbvariant = altgr-intl
>>
>> Good point. I have just looked at the x2goserver code a bit closer. As
>> Python X2go is basically a wrapper it wraps around something: NX. And
>> in NX there is only a kbtype option (nxproxy --help). This kbtype is
>> set (with a bunch of other options) as the DISPLAY variable of the
>> nxagent/x2goagent on the server.
>>
>> Probably it might be best is to issue a setxkbmap command just before
>> starting the actual session.
>>
>> What do you think, would that help? I can implement that in pyton-x2go
>> directly (by also adding the kbvariant method parameter).
>>
>> Greets,
>> Mike
>
> Hi!
>
> Yep, that'd work for me.
>
> I had a quick look at the way it seems to work for my with qtnx +
> freenx.
> The options are:
> nx/nx,keyboard=defkeymap,kbtype=pc102/defkeymap,cache=64M,images=16M,link=adsl,nodelay=1,type=unix-desktop,clipboard=both,cleanup=10,product=LFE/None/LFEN/None,shmem=1,backingstore=when_requested,shpix=1,accept=127.0.0.1,cookie=01db5d8f49eb99cc24960b8e44ece0df,id=weblive-appserv02-2012-19B946687E199316F70C3C215EBFDE70,samba=0,media=0,menu=1:2012
>
> And I have a "keyboard" file in the NX session directory on the server
> containing:
> rules=evdev
> model=pc105
> layout=us
> variant=altgr-intl
> options=lv3:ralt_switch,grp:alts_toggle
>
> Which is identical to my laptop's settings at the time I started qtnx.
>
> I tried with the Swiss French keyboard and got the following "keyboard"
> file:
> rules=evdev
> model=pc105
> layout=ch
> variant=fr
> options=lv3:ralt_switch,grp:alts_toggle
>

I have added defkeymap / keyboard file support to python-x2go.  
However, when I tested it with one of my X2go servers, it resulted in  
this output:

mike at x2goserver:/srv/homes/mike$ xprop -root _XKB_RULES_NAMES
_XKB_RULES_NAMES(STRING) = "xfree86", "pc105", "defkeymap", "", ""

Although my keyboard file looks like this:

rules=evdev
model=pc105
layout=de
variant=nodeadkeys
options=

I then grepped X2go's nxagent fork x2goagent:

mike at devsystem:~/x2go-upstream/x2goagent$ grep -ri defkeymap *
mike at devsystem:~/x2go-upstream/x2goagent$

-> that is: it resulted in no output at all...

@devs: is there any chance that we incorporate latest nxagent code  
into x2goagent???? The handling of keyboard files would probably solve  
quite a few bugs around keyboard/keymap problems...

Greets,
Mike

-- 

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

GnuPG Key ID 0xB588399B
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20110528/7f79a15f/attachment.pgp>


More information about the x2go-dev mailing list