X2Go Bug report logs - #488
keystrokes.cfg: first entry in xml element list gets ignored

version graph

Package: nxagent; Maintainer for nxagent is X2Go Developers <x2go-dev@lists.x2go.org>; Source for nxagent is src:nx-libs.

Reported by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Date: Wed, 7 May 2014 06:40:02 UTC

Severity: important

Tags: pending

Found in version 3.5.0.23

Fixed in version 2:3.5.0.24

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

Received: (at submit) by bugs.x2go.org; 7 May 2014 06:38:03 +0000
From mike.gabriel@das-netzwerkteam.de  Wed May  7 08:38:02 2014
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,
	RCVD_IN_DNSWL_BLOCKED,URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 8A0255DB15
	for <submit@bugs.x2go.org>; Wed,  7 May 2014 08:38:02 +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 811A61FB7
	for <submit@bugs.x2go.org>; Wed,  7 May 2014 08:38:00 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 391FB3BB40
	for <submit@bugs.x2go.org>; Wed,  7 May 2014 08:38:02 +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 cOZN1+KCk1VL for <submit@bugs.x2go.org>;
	Wed,  7 May 2014 08:38:02 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id 0E2DB3BAB0
	for <submit@bugs.x2go.org>; Wed,  7 May 2014 08:38:02 +0200 (CEST)
Received: from nocatv2.tng.de (nocatv2.tng.de [213.178.75.58]) by
 mail.das-netzwerkteam.de (Horde Framework) with HTTP; Wed, 07 May 2014
 06:38:01 +0000
Date: Wed, 07 May 2014 06:38:01 +0000
Message-ID: <20140507063801.Horde.Hm_eY2RioHslP164s2XWZQ1@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: submit@bugs.x2go.org
Subject: keystrokes.cfg: first entry in xml element list gets ignored
User-Agent: Internet Messaging Program (IMP) H5 (6.1.7)
Accept-Language: en,de
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 213.178.75.58
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101
 Firefox/26.0 Iceweasel/26.0
Content-Type: multipart/signed; boundary="=_iop7bVfJmIM3ZhnHoP65ZQ6";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
Package: nxagent
Severity: important
Version: 3.5.0.23
X-Debbugs-Cc: jean@gottschalk.us

Below there is a hint to why people complain about NX keystroke  
configuration file failures.

Marking this issue as important as it has been bugging several people  
in the near past.

Mike


----- Weitergeleitete Nachricht von Jean Gottschalk <jean@gottschalk.us> -----
  Datum: Tue, 6 May 2014 22:44:01 -0700
    Von: Jean Gottschalk <jean@gottschalk.us>
Betreff: Re: [X2Go-User] CTRL+ALT+T not working in MATE
     An: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
     Cc: x2go-user@lists.berlios.de

After further investigation, I think there is another problem here: it
seems to me like the first shortcut in the keystrokes.cfg file is simply
being ignored.

If my file starts like this:

<!DOCTYPE NXKeystroke>
<keystrokes>
<keystroke action="close_session" Control="1" AltMeta= "1" key="c" />
<keystroke action="switch_all_screens" Control="1"  AltMeta= "1" key="f" />
<keystroke action="minimize" Control="1" AltMeta= "1" key="m" />

The CTRL+ALT+C action doesn't work.

But like this:

<!DOCTYPE NXKeystroke>
<keystrokes>
<keystroke action="close_session" Control="1" AltMeta= "1" key="c" />
<keystroke action="close_session" Control="1" AltMeta= "1" key="c" />
<keystroke action="switch_all_screens" Control="1"  AltMeta= "1" key="f" />
<keystroke action="minimize" Control="1" AltMeta= "1" key="m" />

it works just fine!

Could someone perhaps check the code and see if there is a bug in the
parser that ignores the first shortcut listed in the file?

PS: CTRL+ALT+T and CTRL+ALT+Z work just fine now, as long as I put them on
the second line of the file, and not the first!

Jean




On Tue, May 6, 2014 at 8:36 PM, Jean Gottschalk <jean@gottschalk.us> wrote:

> Hello,
>
> just wanted to inform the mailing list how I managed to resolve this issue:
>
> The key combinations CTRL+ALT+Z or CTRL+ALT+T had no effect in MATE, but
> CTRL+ALT+C worked.
>
> The correct location to put this into is /etc/x2go/keystrokes.cfg
> Note that this is keystrokes in plural, not singular as written in the
> wiki. Also the path is different from the one in the wiki (and I did not
> find a way to create a wiki account for myself, in order to correct this).
>
> Jean
>
>
> On Sat, Jan 11, 2014 at 9:35 AM, Jean Gottschalk <jean@gottschalk.us>wrote:
>
>> Mike,
>>
>> thank you for the quick reply, just to make sure that I understood
>> properly what you wanted me to do:
>> I went into /etc/x2go/keystrokes.cfg on the server, and changed:
>>
>> <keystroke action="close_session" Control="1" AltMeta= "1" key="t" />
>> to
>> <keystroke action="close_session" Control="1" AltMeta= "1" key="z" />
>>
>> Then, in doubt, I rebooted the entire server (and client), logged into a
>> new session, and neither CTRL+ALT+t nor CTRL+ALT+z will terminate my
>> session.
>>
>> What am I doing wrong?
>>
>> Jean
>>
>>
>> On Wed, Jan 8, 2014 at 1:58 AM, Mike Gabriel <
>> mike.gabriel@das-netzwerkteam.de> wrote:
>>
>>> Hi Jean
>>>
>>>
>>> On  Mi 08 Jan 2014 06:15:58 CET, Jean Gottschalk wrote:
>>>
>>>  Hello,
>>>>
>>>> I have recently upgraded my Ubuntu installation, which is running
>>>> x2goserver, to 13.10. I used to use GNOME as a window manager, but since
>>>> 13.10, gnome seems to require 3D acceleration and can no longer be used
>>>> with x2go, event in fallback mode (anyone, please tell me if you found a
>>>> way to make gnome work in 13.10).
>>>>
>>>> So I installed MATE and upgraded x2goserver to 4.0.1.11 (Unfortunately
>>>> both
>>>> at the same time).
>>>>
>>>> Since then, the keyboard shortcut CTRL + ALT + T (which is the only
>>>> shortcut I am using) is not longer working.
>>>> After x2goserver upgrade, I have files /etc/nxagent/keystrokes.cfg and
>>>> /etc/x2go/keystrokes.cfg (which were not there before) and they both
>>>> contain a definition for CTRL + ALT + T to terminate a session.
>>>>
>>>> Not sure what to do next. Is it perhaps a known issue that CTRL+ALT+T
>>>> does
>>>> not work in MATE, or perhaps a known issue in the current version of
>>>> x2goserver?
>>>>
>>>> Any advice is appreciated!
>>>>
>>>> Thank you!
>>>>
>>>> Jean
>>>>
>>>
>>> the described scenario is exactly the reason why one of the devs (arw
>>> from Uni Erlangen, Germany) provided the keystrokes.cfg patch.
>>>
>>> Put another hotkey combination into the keystrokes.cfg file for session
>>> termination (/etc/x2go/keystrokes.cfg) and then CTRL-ALT-T should work
>>> again in MATE.
>>>
>>> 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
>>>
>>
>>
>

----- Ende der weitergeleiteten Nachricht -----

-- 

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
[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Fri Apr 19 13:30:00 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.