From unknown Tue Apr 28 07:58:44 2026
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#750 closed by Mihai Moldovan <ionic@ionic.de> (Update
 keystrokes.cfg docs for nx-libs 3.5.0.29)
Message-ID: <handler.750.b750.144034337813630.notifdone@bugs.x2go.org>
References: <55D9E54E.1090100@ionic.de>
X-X2go-PR-Keywords: patch
X-X2go-PR-Message: they-closed 750
X-X2go-PR-Package: wiki.x2go.org
Date: Sun, 23 Aug 2015 15:25:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1440343502-13883-0"

This is a multi-part message in MIME format...

------------=_1440343502-13883-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 wiki.x2go.org package:

#750: Update keystrokes.cfg docs for nx-libs 3.5.0.29

It has been closed by Mihai Moldovan <ionic@ionic.de>.

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 Mihai Moldovan <ionic@=
ionic.de> by
replying to this email.


--=20
750: http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=3D750
X2Go Bug Tracking System
Contact owner@bugs.x2go.org with problems

------------=_1440343502-13883-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 750) by bugs.x2go.org; 23 Aug 2015 15:22: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=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID,
	URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from Root24.de (powered.by.root24.eu [5.135.3.88])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id D98525DA86
	for <750@bugs.x2go.org>; Sun, 23 Aug 2015 17:22:55 +0200 (CEST)
Received: from nopileos.local (home.ionic.de [217.92.117.31])
	by mail.ionic.de (Postfix) with ESMTPSA id 9F92B4F094C0
	for <750@bugs.x2go.org>; Sun, 23 Aug 2015 17:22:55 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ionic.de; s=default;
	t=1440343375; bh=Tit6uKGBm69aLY6ni8Gm+bOaLLTS1I8dqgC62sdJxMo=;
	h=To:From:Subject:Date:From;
	b=W4cLENVP5TI4grZ7PUP7sJkD3a1H7O+4j45yYslSxQDlbGhVoeTL+oydXfHI2hdA3
	 fmlccjru4ccLv8tzpZb8jG38SdBPlqv9XMIJPdnuzWY6eYe6un8CxEmkgMV7WoHYQm
	 /+/xf73S4MhFFgsD7hcxQkLY+Mrh5RfabJI69imM=
To: 750@bugs.x2go.org
From: Mihai Moldovan <ionic@ionic.de>
Subject: Update keystrokes.cfg docs for nx-libs 3.5.0.29
Message-ID: <55D9E54E.1090100@ionic.de>
Date: Sun, 23 Aug 2015 17:22:54 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0)
 Gecko/20100101 Thunderbird/38.0.1
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature";
 boundary="8sPdt2FXXawrnulv77a7Ihxa6CAfdrovd"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--8sPdt2FXXawrnulv77a7Ihxa6CAfdrovd
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Control: close -1


Closing this as I've heard no objections.



Mihai


--8sPdt2FXXawrnulv77a7Ihxa6CAfdrovd
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCgAGBQJV2eVOAAoJEB/WLtluJTqHbOgQAMCJfUG6RkcNvls7peGlqbJx
ONl881v9AnCVn6VVIlwATPVanF1kJXWffqCSoQwhlp9yWEVRLqpwCX5GAq4sGOLF
rb8HbeUyKxHkKsmt/iZX7F6PbO1QbK+P4cMkOCTH+2FOu13uv/c+k9fF+tD5RJ4J
zdrfoOcIgJCsIRi73x12Bc+3+OVzBozJPd359SYaHGnXEmgD1PCbb0/0pA2PRfGz
8gsnEquT9CG//e1BBgZ42owRAIghxwYN4RwWWTpJOzEryGY3kByfvoLz5YZH8o0a
nsu9eOUFbBEVX9+M7y89I0Qh3ROloiLnaFsRUKh++T6yLS2AWdtm+/53KjiLJqbF
S1737lK7iisd3r30K4mFx+upt08Y2Yb1cdACZfgecPZU2/K57/+jQTATdpYa93of
6NueYvNVpRF3zb9H9gh5BeOf+z5AU1yflwS9yk/t7nWf9euUVEHhPO3cyQATCkWI
LpmLDqERtOiQP44icx2Hbryfm5A/t8/lJdU/FB5Y9BokDaWreNp46hFttfE6JSHx
jCyDWk4hT/6bY0uYjTgG1pz+tzbXhAwuQWxDDbUf3hyNynoeVMTdjAZZ5Xm1uSNl
RTuqzPg8cijqmk7UeDzoEy4pHqaQQmQrbgiUpz0lKoRIpkCLOntEdwlUZYyiTEXK
5ML88SxgvsRvdNDPuN3t
=owLE
-----END PGP SIGNATURE-----

--8sPdt2FXXawrnulv77a7Ihxa6CAfdrovd--


------------=_1440343502-13883-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.x2go.org; 15 Jan 2015 15:17:30 +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.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED
	autolearn=ham version=3.3.2
X-Greylist: delayed 400 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Thu, 15 Jan 2015 16:17:28 CET
Received: from quickstop.soohrt.org (quickstop.soohrt.org [85.131.246.152])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id E1F2E5DA53
	for <submit@bugs.x2go.org>; Thu, 15 Jan 2015 16:17:28 +0100 (CET)
Received: (qmail 7145 invoked by uid 1014); 15 Jan 2015 15:10:46 -0000
Date: Thu, 15 Jan 2015 16:10:46 +0100
From: Horst Schirmeier <horst@schirmeier.com>
To: submit@bugs.x2go.org
Subject: user-local keystrokes.cfg does not work
Message-ID: <20150115151045.GI22378@quickstop.soohrt.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)

Package: x2goagent
Version: 2:3.5.0.29-0x2go1~git20150113.557+wheezy.heuler.1

A user-local ~/.nx/config/keystrokes.cfg (as described on
<http://wiki.x2go.org/doku.php/wiki:advanced:nx-keyboard-shortcuts>,
which, btw, still talks about the singular file name "keystroke.cfg") is
not read by nxagent, incapacitating users from overriding system-wide
defaults.

The core reason is the way x2goagent communicates the custom
/etc/x2go/keystrokes.cfg path to nxagent:

NXAGENT_KEYSTROKEFILE=/etc/x2go/keystrokes.cfg
export NXAGENT_KEYSTROKEFILE

In nxagent's keystroke-file search order, this environment variable is
tested for before ~/.nx/config/keystrokes.cfg is looked at.  As a simple
remedy, I suggest imitating nxagent's search order in the x2goagent
wrapper script:

---
 debian/wrappers/x2goagent | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/debian/wrappers/x2goagent b/debian/wrappers/x2goagent
index 129c7ca..750c651 100644
--- a/debian/wrappers/x2goagent
+++ b/debian/wrappers/x2goagent
@@ -29,7 +29,15 @@ test -x $NX_LIBS/../x2go/bin/$NXAPP && export NX_LIBS=$NX_LIBS
 
 export LD_LIBRARY_PATH
 
-NXAGENT_KEYSTROKEFILE=/etc/x2go/keystrokes.cfg
-export NXAGENT_KEYSTROKEFILE
+for CONFIG in ~/.x2go/config/keystrokes.cfg ~/.nx/config/keystrokes.cfg \
+              /etc/x2go/keystrokes.cfg /etc/nxagent/keystrokes.cfg
+do
+	if [ -r "$CONFIG" ]
+	then
+		NXAGENT_KEYSTROKEFILE=$CONFIG
+		export NXAGENT_KEYSTROKEFILE
+		break
+	fi
+done
 
 exec $NX_LIBS/../x2go/bin/$NXAPP "$@"

-- 
PGP-Key 0xD40E0E7A

------------=_1440343502-13883-0--
