From mail@maciej.szmigiero.name Mon Aug 5 02:15:04 2013 Received: (at submit) by bugs.x2go.org; 5 Aug 2013 00:15:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=RDNS_NONE autolearn=no version=3.3.2 X-Greylist: delayed 1752 seconds by postgrey-1.34 at ymir; Mon, 05 Aug 2013 02:15:04 CEST Received: from vps-vb.mhejs.net (unknown [37.28.154.113]) by ymir (Postfix) with ESMTPS id 931B05DB35 for ; Mon, 5 Aug 2013 02:15:04 +0200 (CEST) Received: from 89-71-103-214.dynamic.chello.pl ([89.71.103.214] helo=[192.168.1.3]) by vps-vb.mhejs.net with esmtps (TLSv1:CAMELLIA256-SHA:256) (Exim 4.77) (envelope-from ) id 1V67zj-0008Kh-0B for submit@bugs.x2go.org; Mon, 05 Aug 2013 01:45:51 +0200 Message-ID: <51FEE7A9.7060001@maciej.szmigiero.name> Date: Mon, 05 Aug 2013 01:45:45 +0200 From: "Maciej S. Szmigiero" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130217 Thunderbird/17.0.2 MIME-Version: 1.0 To: submit@bugs.x2go.org Subject: keyboard layout selected in x2go client isn't applied to the session Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Package: x2goserver Version: 4.0.1.3 It seems that the keyboard layout selected in x2go client isn't applied to the session. I've tracked the issue to "keyboard" blocking directory being created by x2gostartagent script: 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 X2GO_KBD_TYPE contains the actual keyboard type, so its not "auto" and the blocking directory gets created. I've changed it to "[ "$X2GO_KBD_TYPE" == "auto" ]" and the keyboard layouts gets applied on session startup. There is also similar code in x2goresume-session: # set client-side keyboard model, type, variant, etc. if [ "$X2GO_SET_KBD" != "0" ] && [ "$X2GO_KBD_TYPE" == "auto" ]; then Here it should probably be "[ "$X2GO_KBD_TYPE" != "null\/null" ]", as few lines earlier the script will change X2GO_KBD_TYPE to this value when it is set to "auto" or when X2GO_SET_KBD is zero. Best regards, Maciej Szmigiero