[X2Go-Dev] Fwd: [Bug 1033876] New: x2go session does not set correct keyboard type

Orion Poplawski orion at cora.nwra.com
Thu Nov 28 01:12:18 CET 2013


This in x2gostartagent seems wrong:


if [ "$X2GO_SET_KBD" == "0" ] || [ "$X2GO_KBD_TYPE" != "auto" ]; then
         $X2GO_LIB_PATH/x2gosyslog "$0" "info" "blocking creation of 
agent's keyboard file ${SESSION_DIR}/keyboard as requested by session 
startup command"
         mkdir -p ${SESSION_DIR}/keyboard
fi

In the normal case, X2GO_SET_KBD is 1 and the type is specified as 
pc105/us or pc105/gb, etc.  Since X2GO_KBD_TYPE != auto it does not set 
the keyboard setttings.

I'm not sure what is trying to be done here.  An earlier comparison is:

if [ "$X2GO_SET_KBD" == "0" ] || [ "$X2GO_KBD_TYPE" == "auto" ];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_LOG},kbtype=null/null,${option_geometry}resize=${X2GO_RESIZE},fullscreen=${X2GO_FULLSCREEN},accept=${REMOTE},listen=${GR_PORT},client=linux,menu=0"
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_LOG},kbtype=${X2GO_KBD_TYPE},${option_geometry}resize=${X2GO_RESIZE},fullscreen=${X2GO_FULLSCREEN},accept=${REMOTE},listen=${GR_PORT},client=linux,menu=0"
fi

So you probably want a == auto.


On 11/23/2013 07:56 PM, Orion Poplawski wrote:
> Could anyone see what it going wrong here?  Thanks.
>
>
> -------- Original Message --------
> Subject: [Bug 1033876] New: x2go session does not set correct keyboard type
> Date: Sat, 23 Nov 2013 23:20:58 +0000
> From: bugzilla at redhat.com
> To: orion at cora.nwra.com
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1033876
>
>              Bug ID: 1033876
>             Summary: x2go session does not set correct keyboard type
>             Product: Fedora
>             Version: 20
>           Component: x2goserver
>            Severity: medium
>            Assignee: orion at cora.nwra.com
>            Reporter: rmj at ast.cam.ac.uk
>          QA Contact: extras-qa at fedoraproject.org
>                  CC: orion at cora.nwra.com
>
>
>
> Description of problem:
> x2go KDE session does not have correct keyboard type
>
> Version-Release number of selected component (if applicable):
> This is seen on Fedora 20 beta
> x2goserver-4.0.1.6-5.fc20.x86_64
>
> x2goclient 4.0.0.3 on Windows XP
>
> How reproducible:
> Every time.
>
> Steps to Reproduce:
> 1. From a Windows XP laptop with UK keyboard, configure an x2go session
> with
> Session preferences / settings /
> keyboard layout: gb
> keyboard model: pc105/gb
> 2. Start x2go session to Fedora 20 beta
> 3. Type on the keyboard
>
> Actual results:
> Keyboard is incorrectly mapped.
> eg Shift 3 gives # instead of £.
> | key gives >
> ~ key gives |
> # key gives \
> " key gives @
> @ key gives "
> etc
>
> Seen in konsole, firefox, gedit etc.
>
> Expected results:
> Keys give the symbols printed on them
>
> Additional info:
> Correct keyboard mapping can be recovered by giving the command:
> setxkbmap gb
>
> The file:
> /tmp/.x2go-testuser/session-C-testuser-51-1385245333_stDKDE_dp32.log
>
> contains the message:
> nxagentXkbGetRules: WARNING! Failed to stat file
> [/usr/lib64/nx/X11/xkb/rules/xorg]: Unknown error -1.
> keyboard file created
>


-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com



More information about the x2go-dev mailing list