From unknown Thu Mar 28 10:33:36 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#285: keyboard layout selected in x2go client isn't applied to the session Reply-To: "Maciej S. Szmigiero" , 285@bugs.x2go.org Resent-From: "Maciej S. Szmigiero" Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Mon, 05 Aug 2013 00:18:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: report 285 X-X2Go-PR-Package: x2goserver X-X2Go-PR-Keywords: Received: via spool by submit@bugs.x2go.org id=B.137566170510127 (code B); Mon, 05 Aug 2013 00:18:01 +0000 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 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 From unknown Thu Mar 28 10:33:36 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#285: [X2Go-Dev] Bug#285: keyboard layout selected in x2go client isn't applied to the session Reply-To: Mike Gabriel , 285@bugs.x2go.org Resent-From: Mike Gabriel Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Mon, 05 Aug 2013 10:18:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 285 X-X2Go-PR-Package: x2goserver X-X2Go-PR-Keywords: Received: via spool by 285-submit@bugs.x2go.org id=B285.13756978181299 (code B ref 285); Mon, 05 Aug 2013 10:18:02 +0000 Received: (at 285) by bugs.x2go.org; 5 Aug 2013 10:16:58 +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=0.0 required=5.0 tests=URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199]) by ymir (Postfix) with ESMTPS id 0E2245DB1E; Mon, 5 Aug 2013 12:16:58 +0200 (CEST) Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98]) by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 9C1ECAF6; Mon, 5 Aug 2013 12:16:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 29DA83BBA2; Mon, 5 Aug 2013 12:16:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de Received: from grimnir.das-netzwerkteam.de ([127.0.0.1]) by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zbb+NTPP0DC0; Mon, 5 Aug 2013 12:16:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id EDB5F3BEE8; Mon, 5 Aug 2013 12:16:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id CF3703BBA2; Mon, 5 Aug 2013 12:16:56 +0200 (CEST) Received: by grimnir.das-netzwerkteam.de (Postfix, from userid 33) id 5D9663BEE8; Mon, 5 Aug 2013 12:16:56 +0200 (CEST) Received: from m-047.informatik.uni-kiel.de (m-047.informatik.uni-kiel.de [134.245.254.47]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP; Mon, 05 Aug 2013 12:16:56 +0200 Message-ID: <20130805121656.69992m0bdq7s0mu0@mail.das-netzwerkteam.de> X-Priority: 3 (Normal) Date: Mon, 05 Aug 2013 12:16:56 +0200 From: Mike Gabriel To: 285@bugs.x2go.org Cc: 285-submitter@bugs.x2go.org References: <51FEE7A9.7060001@maciej.szmigiero.name> In-Reply-To: <51FEE7A9.7060001@maciej.szmigiero.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_2d18hxicr2xk"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.4) This message is in MIME format and has been PGP signed. --=_2d18hxicr2xk Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit Control: tag -1 confirmed Hi Maciej, I have taken a look at this issue this morning and I think in some parts you are right, in some parts you are wrong. On Mo 05 Aug 2013 01:45:45 CEST "Maciej S. Szmigiero" wrote: > 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. x2gostartagent: here I do not see an issue. Not that in X2Go Server there are three ways to set up your keyboard: 1) no setup at all (setxkb=false in sessions file) 2) setup a specific setup (e.g. type=pc105/us, layout=us) 3) automatic setup (-> type=auto, layout=) The server-side script ,,x2gosetkeyboard'' is only used for 3). The keyboard setup for 2) is managed from the client side by issuing setxkbmap commands via the open SSH channel. On x2gostartagent, everything (after testing with PyHoca-GUI and X2Go Client) works as expected. > 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. For x2goresume-session, however, you dug out a minor issue. This issue has been fixed now, see the automatic follow-up mail which will point you to the code change in X2Go Git. Thanks for contributing to X2Go, Mike -- DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148 GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb --=_2d18hxicr2xk Content-Type: application/pgp-signature Content-Description: Digitale PGP-Unterschrift Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAABAgAGBQJR/3uYAAoJEJr0azAldxsxuz4P/j8zTqkJMb2fTfoNc772xpYo rsdJC7Tjjng+rybVG4rIbJPLAhIzEHa9WSnmaq6nifQF3zQYPwXf1sJb69ez8A+r IM3lWmGDKJWz0KabV7sx6YJruwuFZNBwgd6ypgCbymR1OSQvxm8PUSGbgUqnpJ7f ibh3TIAlAEKRtvlpZu3EOI5I3LM5JQiw9M73PuAUzenO/YUxhBWTJ2MWaNSnclfJ uDp/wGmkS6rSpsPQ91uqgWADkdiY+RrvQJC5pmkGrh9D7PhIwHWXzAOpb8269H9g gbQsXsfn31/TelaeD1Kku6x1AcPJy5mJSTTI59jSJu04ODXx01GlBYCaHmPQII4z XC3dcgV81+JgJxmFQP4HBaTDKIGQ6o3JQ9fakpHruVo997G6swsKoagqj50MXVcq YiFjASaMV12bb9G9HP0NFrrbfZfHAuN9nZ7Odwk3mX9eJjS34Vw+FD6JS4h9CrcB ME0ikH8OPjHrUg3MUMVyZXz0fQO+D/ig6Jymt1He4Jh5Xi2K4d+uGfaDVCxpNIy8 thZFCTBjQAvcnnN52Rl0mKgKrKBO7ymMuhGrlBPWZbJmrPPxvEhlBN2AzJmK1G8A rs9QkH5JWBwq2yHrWloV2oCZMCveCRZ40C5738Xh0qViCGz+Zp5QnfH5skcXV83s zJUkj3Kdl9cyXYUiDorF =5gbU -----END PGP SIGNATURE----- --=_2d18hxicr2xk-- From unknown Thu Mar 28 10:33:36 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#285: X2Go issue (in src:x2goserver) has been marked as pending for release Reply-To: Mike Gabriel , 285@bugs.x2go.org Resent-From: Mike Gabriel Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Mon, 05 Aug 2013 10:33:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 285 X-X2Go-PR-Package: x2goserver X-X2Go-PR-Keywords: confirmed Received: via spool by 285-submit@bugs.x2go.org id=B285.13756979472301 (code B ref 285); Mon, 05 Aug 2013 10:33:02 +0000 Received: (at 285) by bugs.x2go.org; 5 Aug 2013 10:19:07 +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=0.0 required=5.0 tests=NO_RELAYS,URIBL_BLOCKED autolearn=unavailable version=3.3.2 Received: by ymir (Postfix, from userid 1005) id 56E245DB37; Mon, 5 Aug 2013 12:18:59 +0200 (CEST) From: Mike Gabriel To: 285-submitter@bugs.x2go.org Cc: control@bugs.x2go.org, 285@bugs.x2go.org Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer: http://snipr.com/post-receive-tag-pending Message-Id: <20130805101859.56E245DB37@ymir> Date: Mon, 5 Aug 2013 12:18:59 +0200 (CEST) tag #285 pending fixed #285 4.0.1.7 thanks Hello, X2Go issue #285 (src:x2goserver) reported by you has been fixed in X2Go Git. You can see the changelog below, and you can check the diff of the fix at: http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=afa555f The issue will most likely be fixed in src:x2goserver (4.0.1.7). light+love X2Go Git Admin (on behalf of the sender of this mail) --- commit afa555fcfdb84dcc005a38f7b0644813dde1e625 Author: Mike Gabriel Date: Mon Aug 5 12:18:41 2013 +0200 Fix automatic keyboard setup (via x2gosetkeyboard) while resuming a session. (Fixes: #285). diff --git a/debian/changelog b/debian/changelog index f0269f5..8493262 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,8 @@ x2goserver (4.0.1.7-0~x2go1) UNRELEASED; urgency=low Xsession.options they get symlinked into /etc/x2go. Otherwise Xsession.d and Xsession.options are created under /etc/x2go as empty dir/file. (Fixes: #278). + - Fix automatic keyboard setup (via x2gosetkeyboard) while resuming a session. + (Fixes: #285). * /debian/control: - Update LONG_DESCRIPTIONS. - Move xfonts-base from Recommends: field to Depends: field (bin:package From unknown Thu Mar 28 10:33:36 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#285: [X2Go-Dev] Bug#285: keyboard layout selected in x2go client isn't applied to the session Reply-To: "Maciej S. Szmigiero" , 285@bugs.x2go.org Resent-From: "Maciej S. Szmigiero" Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Mon, 05 Aug 2013 11:33:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 285 X-X2Go-PR-Package: x2goserver X-X2Go-PR-Keywords: confirmed pending Received: via spool by 285-submit@bugs.x2go.org id=B285.137570220425895 (code B ref 285); Mon, 05 Aug 2013 11:33:02 +0000 Received: (at 285) by bugs.x2go.org; 5 Aug 2013 11:30:04 +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 966 seconds by postgrey-1.34 at ymir; Mon, 05 Aug 2013 13:30:03 CEST Received: from vps-vb.mhejs.net (unknown [37.28.154.113]) by ymir (Postfix) with ESMTPS id 786A75DB1E for <285@bugs.x2go.org>; Mon, 5 Aug 2013 13:30:03 +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 1V6Ijc-0003Zy-LQ; Mon, 05 Aug 2013 13:13:56 +0200 Message-ID: <51FF88EE.30204@maciej.szmigiero.name> Date: Mon, 05 Aug 2013 13:13:50 +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: Mike Gabriel CC: 285@bugs.x2go.org References: <51FEE7A9.7060001@maciej.szmigiero.name> <20130805121656.69992m0bdq7s0mu0@mail.das-netzwerkteam.de> In-Reply-To: <20130805121656.69992m0bdq7s0mu0@mail.das-netzwerkteam.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello Mike, Thanks for a quick look, see also comments below, inlined. W dniu 05.08.2013 12:16, Mike Gabriel pisze: > Hi Maciej, > > I have taken a look at this issue this morning and I think in some parts you are right, in some parts you are wrong. > > On Mo 05 Aug 2013 01:45:45 CEST "Maciej S. Szmigiero" wrote: > (..) > x2gostartagent: here I do not see an issue. Not that in X2Go Server there are three ways to set up your keyboard: > > 1) no setup at all (setxkb=false in sessions file) > 2) setup a specific setup (e.g. type=pc105/us, layout=us) > 3) automatic setup (-> type=auto, layout=) > > The server-side script ,,x2gosetkeyboard'' is only used for 3). > > The keyboard setup for 2) is managed from the client side by issuing setxkbmap commands via the open SSH channel. I've grepped x2goclient-4.0.1.0 sources and found only setxkbmap call on client side (via "QProcess::startDetached"). There is also remote xmodmap call on Maemo, but it only remaps two keys. > On x2gostartagent, everything (after testing with PyHoca-GUI and X2Go Client) works as expected. Unfortunately not for me (that's why I looked into this issue). (..) > For x2goresume-session, however, you dug out a minor issue. This issue has been fixed now, see the automatic follow-up mail which will point you to the code change in X2Go Git. Thanks. > Thanks for contributing to X2Go, > Mike Thanks and best regards, Maciej Szmigiero From unknown Thu Mar 28 10:33:36 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#285: keyboard layout selected in x2go client isn't applied to the session Reply-To: Mike Gabriel , 285@bugs.x2go.org Resent-From: Mike Gabriel Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Mon, 05 Aug 2013 12:18:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 285 X-X2Go-PR-Package: x2goserver X-X2Go-PR-Keywords: confirmed pending Received: via spool by 285-submit@bugs.x2go.org id=B285.13757043776443 (code B ref 285); Mon, 05 Aug 2013 12:18:02 +0000 Received: (at 285) by bugs.x2go.org; 5 Aug 2013 12:06:17 +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=0.0 required=5.0 tests=URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199]) by ymir (Postfix) with ESMTPS id 1AFE45DB1E; Mon, 5 Aug 2013 14:06:17 +0200 (CEST) Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98]) by freya.das-netzwerkteam.de (Postfix) with ESMTPS id A25D1AF6; Mon, 5 Aug 2013 14:06:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 8E7C93BC35; Mon, 5 Aug 2013 14:06:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de Received: from grimnir.das-netzwerkteam.de ([127.0.0.1]) by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eCJqjqgprvuL; Mon, 5 Aug 2013 14:06:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 5FC273BF2A; Mon, 5 Aug 2013 14:06:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 494D03BC35; Mon, 5 Aug 2013 14:06:16 +0200 (CEST) Received: by grimnir.das-netzwerkteam.de (Postfix, from userid 33) id E6C523BF13; Mon, 5 Aug 2013 14:06:15 +0200 (CEST) Received: from m-047.informatik.uni-kiel.de (m-047.informatik.uni-kiel.de [134.245.254.47]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP; Mon, 05 Aug 2013 14:06:15 +0200 Message-ID: <20130805140615.13575ubvqzmrfwhj@mail.das-netzwerkteam.de> X-Priority: 3 (Normal) Date: Mon, 05 Aug 2013 14:06:15 +0200 From: Mike Gabriel To: "Maciej S. Szmigiero" Cc: 285@bugs.x2go.org, control@bugs.x2go.org References: <51FEE7A9.7060001@maciej.szmigiero.name> <20130805121656.69992m0bdq7s0mu0@mail.das-netzwerkteam.de> <51FF88EE.30204@maciej.szmigiero.name> In-Reply-To: <51FF88EE.30204@maciej.szmigiero.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_5a2et4h9ggmv"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.4) This message is in MIME format and has been PGP signed. --=_5a2et4h9ggmv Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit clone #285 -1 tag -1 - pending tag -1 - confirmed retitle #285 keyboard layout isn't applied to the session (when resuming) retitle -1 keyboard layout isn't applied to the session (when starting) thanks Hi Maciej, I will clone issue #285, so we have two issues: one for resuming (#285), one for starting new sessions. On Mo 05 Aug 2013 13:13:50 CEST "Maciej S. Szmigiero" wrote: >> x2gostartagent: here I do not see an issue. Not that in X2Go Server >> there are three ways to set up your keyboard: >> >> 1) no setup at all (setxkb=false in sessions file) >> 2) setup a specific setup (e.g. type=pc105/us, layout=us) >> 3) automatic setup (-> type=auto, layout=) >> >> The server-side script ,,x2gosetkeyboard'' is only used for 3). >> >> The keyboard setup for 2) is managed from the client side by >> issuing setxkbmap commands via the open SSH channel. > > I've grepped x2goclient-4.0.1.0 sources and found only setxkbmap > call on client side (via "QProcess::startDetached"). Yes, that's where the settings get set... > There is also remote xmodmap call on Maemo, but it only remaps two keys. > >> On x2gostartagent, everything (after testing with PyHoca-GUI and >> X2Go Client) works as expected. > > Unfortunately not for me (that's why I looked into this issue). In order to get the new cloned bug (the one that deals with keyboard layout while starting X2Go sessions) fixed, please send to me (privately): your ~/.x2goclient/sessions file (grey-out sensitive information) your ~/.x2go/C-/options file (on server-side) your ~/.x2go/C-/session.log Thanks, Mike -- DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148 GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb --=_5a2et4h9ggmv Content-Type: application/pgp-signature Content-Description: Digitale PGP-Unterschrift Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAABAgAGBQJR/5U3AAoJEJr0azAldxsxJJUP/3HxIDqDcN+yXUpxJ72LlidO /qwdaLdsmdsvNJoQxzcII2ITrQZhdLUNnsJXj8+71KoIftgIuJpBG/Wdz6NgzVIy 7kfgj6F4jmU1tXzZSMmv+rPErlPEEQLhdc7Z84kofyH787YUO54F8bcFxgE5IK3d A5356zqS5eSOJn970fWwrk2b94HwNAuyrhZtIms6/e4o2QqNNc+tHwWeLCerODHq EfjTTU4RHtev6tYekKxjTod3L3GXZ3MmS0S/JmMpl47t9rG6efHSYlIh6BGsRj5i 15/KW1On7m6dCXjyB6ENe/K7smsz+wbxnJEbWc9orTzXsa3JdsKX3kKCJ1zGmHdf V0fxP6FRT+kCTEAEwc5DxtAoekRzBbbIs8NyExHWj7J3ZwQixydKZ6YtDMFSCiKS bWWKZ+SVxNSyPTPHyyLEPfVxSjEMEQlYgV8P529nWDXeDF/GauZdXgMOVfVAOi/S slWNKXo7KFOJb6rdk6pJGRB01GzTPDlWGnFSv7+4D3rVmqndt/GwmB0sjBd3i2Vs l1QEvdRrZ5CKPKNq8fDfWdCJjHfszP9y9xn9tUHlSEFjW3y6gDu5q0TJxkp1u3Rb WSYM6oIagwZUjjolUNghTJbO54P0sR/F+B+UdutJkvReBLFPVGzoKTjnGp9BeEPg wzVe+3U59VIqcyyCDXD5 =9o8q -----END PGP SIGNATURE----- --=_5a2et4h9ggmv-- From unknown Thu Mar 28 10:33:36 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#285: X2Go issue (in src:x2goserver) has been marked as closed Reply-To: Mike Gabriel , 285@bugs.x2go.org Resent-From: Mike Gabriel Resent-To: x2go-dev@lists.berlios.de Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Fri, 22 Nov 2013 21:03:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 285 X-X2Go-PR-Package: x2goserver X-X2Go-PR-Keywords: confirmed pending Received: via spool by 285-submit@bugs.x2go.org id=B285.13851540077852 (code B ref 285); Fri, 22 Nov 2013 21:03:02 +0000 Received: (at 285) by bugs.x2go.org; 22 Nov 2013 21:00:07 +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.9 required=5.0 tests=BAYES_00,NO_RELAYS, URIBL_BLOCKED autolearn=ham version=3.3.2 Received: by ymir (Postfix, from userid 1005) id 622F15DB1C; Fri, 22 Nov 2013 21:59:27 +0100 (CET) From: Mike Gabriel To: 285-submitter@bugs.x2go.org Cc: control@bugs.x2go.org, 285@bugs.x2go.org Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Message-Id: <20131122205927.622F15DB1C@ymir> Date: Fri, 22 Nov 2013 21:59:27 +0100 (CET) close #285 thanks Hello, we are very hopeful that X2Go issue #285 reported by you has been resolved in the new release (4.0.1.7) of the X2Go source project »src:x2goserver«. You can view the complete changelog entry of src:x2goserver (4.0.1.7) below, and you can use the following link to view all the code changes between this and the last release of src:x2goserver. http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=447e68e8b82ea4b14e5072e57a0fbc82ef32d687;hp=2d19587c215d49048b6295d87c06c452939a1b8b If you feel that the issue has not been resolved satisfyingly, feel free to reopen this bug report or submit a follow-up report with further observations described based on the new released version of src:x2goserver. Thanks a lot for contributing to X2Go!!! light+love X2Go Git Admin (on behalf of the sender of this mail) --- X2Go Component: src:x2goserver Version: 4.0.1.7 Status: RELEASE Date: Fri, 22 Nov 2013 21:58:27 +0100 Fixes: 276 278 285 305 310 331 Changes: x2goserver (4.0.1.7) RELEASED; urgency=low . [ Orion Poplawski ] * New upstream version (4.0.1.7): - Install Xsession file as executable, make Xsession.d directory location configurable during build process, do not create unused Xsession.options. (Fixes: #278). . [ Mike Gabriel ] * New upstream version (4.0.1.7): - Fine-tune x2goserver-xsession/Makefile: if /etc/X11 has Xsession.d and/or Xsession.options they get symlinked into /etc/x2go. Otherwise Xsession.d and Xsession.options are created under /etc/x2go as empty dir/file. (Fixes: #278). - Fix automatic keyboard setup (via x2gosetkeyboard) while resuming a session. (Fixes: #285). - Provide sudoers.d/x2goserver file that allows sudoed commands under KDE (by pertaining the env var QT_GRAPHICSSYSTEM. (Fixes: #276). - With PostgreSQL as session db backend, prevent the root user from launching sessions. Also, prevent x2gouser_root from being added as a PostgreSQL user. (Fixes: #310). - Execute DB status changes as late as possible during suspend / terminate. - Start/resume rootless sessions without geometry parameter. Esp. using X2GO_GEOMETRY=fullscreen for rootless sessions lead to an extra 1x1 px session window (nxagentCreateIconWindow in nxagent's Window.c). - Typo fix in x2goruncommand (for MATE session startup). * debian/control: + Update LONG_DESCRIPTIONS. + Raise Standards: to 3.9.4 (no changes needed). + Move xfonts-base to Recommends: field of bin:package x2goserver. * debian/x2goserver.init: + Make init script LSB compliant. . [ Helmer Teles ] * New upstream version (4.0.1.7): - Make umask that is used when mounting client-side folders via SSHFS configurable in x2goserver.conf. (Fixes: #331). . [ Jürgen Hötzel ] * New upstream version (4.0.1.7): - Use bash-builtin 'type' instead of to be avoided 'which'. (Fixes: #305). . [ Oleksandr Shneyder ] * New upstream version (4.0.0.6): - Fix x2goruncommand: "type -P $cmd" can create new lines in EXEC variable if command have the arguments wich have same names as existing commands, for example "rdesktop -k nl" -> "/usr/bin/rdesktop\n/usr/bin/nl". Now we splitting $cmd and taking only first part. From unknown Thu Mar 28 10:33:36 2024 MIME-Version: 1.0 X-Mailer: MIME-tools 5.502 (Entity 5.502) X-Loop: owner@bugs.x2go.org From: owner@bugs.x2go.org (X2Go Bug Tracking System) Subject: Bug#285 closed by Mike Gabriel (X2Go issue (in src:x2goserver) has been marked as closed) Message-ID: References: <20131122205927.622F15DB1C@ymir> X-X2go-PR-Keywords: confirmed pending X-X2go-PR-Message: they-closed 285 X-X2go-PR-Package: x2goserver X-X2go-PR-Source: x2goserver Date: Fri, 22 Nov 2013 21:03:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1385154185-8548-0" This is a multi-part message in MIME format... ------------=_1385154185-8548-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 This is an automatic notification regarding your Bug report which was filed against the x2goserver package: #285: keyboard layout isn't applied to the session (when resuming) It has been closed by Mike Gabriel . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Mike Gabriel by replying to this email. --=20 X2Go Bug Tracking System Contact owner@bugs.x2go.org with problems ------------=_1385154185-8548-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at control) by bugs.x2go.org; 22 Nov 2013 21:00:31 +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.9 required=5.0 tests=BAYES_00,NO_RELAYS, URIBL_BLOCKED autolearn=unavailable version=3.3.2 Received: by ymir (Postfix, from userid 1005) id 622F15DB1C; Fri, 22 Nov 2013 21:59:27 +0100 (CET) From: Mike Gabriel To: 285-submitter@bugs.x2go.org Cc: control@bugs.x2go.org, 285@bugs.x2go.org Subject: X2Go issue (in src:x2goserver) has been marked as closed Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Message-Id: <20131122205927.622F15DB1C@ymir> Date: Fri, 22 Nov 2013 21:59:27 +0100 (CET) close #285 thanks Hello, we are very hopeful that X2Go issue #285 reported by you has been resolved in the new release (4.0.1.7) of the X2Go source project »src:x2goserver«. You can view the complete changelog entry of src:x2goserver (4.0.1.7) below, and you can use the following link to view all the code changes between this and the last release of src:x2goserver. http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=447e68e8b82ea4b14e5072e57a0fbc82ef32d687;hp=2d19587c215d49048b6295d87c06c452939a1b8b If you feel that the issue has not been resolved satisfyingly, feel free to reopen this bug report or submit a follow-up report with further observations described based on the new released version of src:x2goserver. Thanks a lot for contributing to X2Go!!! light+love X2Go Git Admin (on behalf of the sender of this mail) --- X2Go Component: src:x2goserver Version: 4.0.1.7 Status: RELEASE Date: Fri, 22 Nov 2013 21:58:27 +0100 Fixes: 276 278 285 305 310 331 Changes: x2goserver (4.0.1.7) RELEASED; urgency=low . [ Orion Poplawski ] * New upstream version (4.0.1.7): - Install Xsession file as executable, make Xsession.d directory location configurable during build process, do not create unused Xsession.options. (Fixes: #278). . [ Mike Gabriel ] * New upstream version (4.0.1.7): - Fine-tune x2goserver-xsession/Makefile: if /etc/X11 has Xsession.d and/or Xsession.options they get symlinked into /etc/x2go. Otherwise Xsession.d and Xsession.options are created under /etc/x2go as empty dir/file. (Fixes: #278). - Fix automatic keyboard setup (via x2gosetkeyboard) while resuming a session. (Fixes: #285). - Provide sudoers.d/x2goserver file that allows sudoed commands under KDE (by pertaining the env var QT_GRAPHICSSYSTEM. (Fixes: #276). - With PostgreSQL as session db backend, prevent the root user from launching sessions. Also, prevent x2gouser_root from being added as a PostgreSQL user. (Fixes: #310). - Execute DB status changes as late as possible during suspend / terminate. - Start/resume rootless sessions without geometry parameter. Esp. using X2GO_GEOMETRY=fullscreen for rootless sessions lead to an extra 1x1 px session window (nxagentCreateIconWindow in nxagent's Window.c). - Typo fix in x2goruncommand (for MATE session startup). * debian/control: + Update LONG_DESCRIPTIONS. + Raise Standards: to 3.9.4 (no changes needed). + Move xfonts-base to Recommends: field of bin:package x2goserver. * debian/x2goserver.init: + Make init script LSB compliant. . [ Helmer Teles ] * New upstream version (4.0.1.7): - Make umask that is used when mounting client-side folders via SSHFS configurable in x2goserver.conf. (Fixes: #331). . [ Jürgen Hötzel ] * New upstream version (4.0.1.7): - Use bash-builtin 'type' instead of to be avoided 'which'. (Fixes: #305). . [ Oleksandr Shneyder ] * New upstream version (4.0.0.6): - Fix x2goruncommand: "type -P $cmd" can create new lines in EXEC variable if command have the arguments wich have same names as existing commands, for example "rdesktop -k nl" -> "/usr/bin/rdesktop\n/usr/bin/nl". Now we splitting $cmd and taking only first part. ------------=_1385154185-8548-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1385154185-8548-0--