Hi devs,

as you might have observed, Stephane and I are currently trying to get xkbmap settings through to the server-side x2goagent (Python X2go on the client-side).

The work is partially python-x2go specific, but also worth a change of concept, as many X2go users have problems with keyboard settings.

Today I have set up a system with a patched x2gostartagent script. The script abuses the not-used option $X2GO_KB_LAYOUT. If its value is set to defkeymap. The x2goagent options file gets changed in this way (patch for x2gostartagent at the end of this mail):

  o keyboard=defkeymap is added as option
  o kbtype=pc105/defkeymap is used
  o a keyboard file is placed into ~/.x2go/C-<session_id> on the X2go server

On Sa 28 Mai 2011 01:25:59 CEST Mike Gabriel wrote:

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


@Stephane: last night my x2goagent options line was still buggy, I have fixed this now, but no success so far:

mike@x2goserver:~/.x2go/C-mike-117-1306579861_stDGNOME_dp24$ cat keyboard
rules=evdev
model=pc105
layout=de
variant=nodeadkeys
options=

mike@x2goserver:~/.x2go/C-mike-117-1306579861_stDGNOME_dp24$ cat options
nx/nx,link=adsl,pack=16m-jpeg-9,limit=0,root=/home/mike/.x2go/C-mike-117-1306579861_stDGNOME_dp24,cache=8M,images=32M,type=unix-kde-depth_24,id=mike-117-1306579861_stDGNOME_dp24,cookie=17bdec4e439b3ba0bd8fd0b7cca3659c,errors=/home/mike/.x2go/C-mike-117-1306579861_stDGNOME_dp24/session.log,geometry=1024x768,resize=0,fullscreen=0,accept=localhost,listen=30202,client=linux,menu=0,keyboard=defkeymap,kbtype=pc105/defkeymap:117

mike@x2goserver:~/.x2go/C-mike-117-1306579861_stDGNOME_dp24$ xprop -root _XKB_RULES_NAMES
_XKB_RULES_NAMES(STRING) = "xfree86", "pc105", "defkeymap", "", ""

Do you have a clue with which nxagent version the ,,keyboard'' file has been introduced into NX?

Best,
Mike


<quote cmd="diff -u x2gostartagent.bak x2gostartagent">
--- x2gostartagent.bak  2011-05-28 12:18:13.000000000 +0200
+++ x2gostartagent      2011-05-28 12:57:32.000000000 +0200
@@ -210,22 +210,21 @@
 xauth add ${HOSTNAME}:${X2GO_PORT} MIT-MAGIC-COOKIE-1 ${X2GO_COOKIE}


-
-if [ "$X2GO_SET_KBD" == "0" ]
-then
X2GO_HOST=nx/nx,link=${X2GO_LINK},pack=${X2GO_PACK},limit=0,root=${SESSION_DIR},cache=8M,images=32M,type=${X2GO_TYPE},\
 id=${SESSION_NAME},\
-cookie=$X2GO_COOKIE,errors=${SESSION_DIR}/session.log,kbtype=null/null,\
+cookie=$X2GO_COOKIE,errors=${SESSION_DIR}/session.log,\
geometry=${X2GO_GEOMETRY},resize=${X2GO_RESIZE},fullscreen=${X2GO_FULLSCREEN},accept=${REMOTE},listen=${GR_PORT},client=linux,menu=0
+
+if [ "$X2GO_SET_KBD" == "0" ]; then
+       X2GO_HOST=${X2GO_HOST},kbtype=null/null
 else
-X2GO_HOST=nx/nx,link=${X2GO_LINK},pack=${X2GO_PACK},limit=0,root=${SESSION_DIR},cache=8M,images=32M,type=${X2GO_TYPE},\
-id=${SESSION_NAME},\
-cookie=$X2GO_COOKIE,errors=${SESSION_DIR}/session.log,kbtype=${X2GO_KBD_TYPE},\
-geometry=${X2GO_GEOMETRY},resize=${X2GO_RESIZE},fullscreen=${X2GO_FULLSCREEN},accept=${REMOTE},listen=${GR_PORT},client=linux,menu=0
+       if [ "$X2GO_KBD_LAYOUT" != "defkeymap" ]; then
+               X2GO_HOST=${X2GO_HOST},kbtype=${X2GO_KBD_TYPE}
+       else
+ X2GO_HOST=${X2GO_HOST},keyboard=defkeymap,kbtype=${X2GO_KBD_TYPE}
+       fi
 fi

-
-
 echo "${X2GO_HOST}:${X2GO_PORT}" >${SESSION_DIR}/options

 NX_AGENT=:${X2GO_PORT}
</quote>




--

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

GnuPG Key ID 0xB588399B
mail: [email protected], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgp6L74QndcHA.pgp
Description: Digitale PGP-Unterschrift

_______________________________________________
X2go-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/x2go-dev

Reply via email to