X2Go Bug report logs - #820
Fwd: [X2Go-Dev] Patch: x2goserver: x2goruncommand - set IMEXIT="true" for gnome-terminal

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

Reported by: Rok Mandeljc <rok.mandeljc@gmail.com>

Date: Tue, 17 Mar 2015 05:45:02 UTC

Severity: normal

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#820: [X2Go-Dev] Bug#820: Bug#820: Patch: x2goserver: x2goruncommand - set IMEXIT="true" for gnome-terminal
Reply-To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, 820@bugs.x2go.org
Resent-From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Tue, 17 Mar 2015 16:10:01 +0000
Resent-Message-ID: <handler.820.B820.14266083065433@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 820
X-X2Go-PR-Package: x2goserver
X-X2Go-PR-Keywords: 
Received: via spool by 820-submit@bugs.x2go.org id=B820.14266083065433
          (code B ref 820); Tue, 17 Mar 2015 16:10:01 +0000
Received: (at 820) by bugs.x2go.org; 17 Mar 2015 16:05:06 +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,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 A6E4B5DAA2
	for <820@bugs.x2go.org>; Tue, 17 Mar 2015 17:05:04 +0100 (CET)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 109A4C14;
	Tue, 17 Mar 2015 17:05:04 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id E149B3BFD9;
	Tue, 17 Mar 2015 17:05:03 +0100 (CET)
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 fe0nvbbTdPOf; Tue, 17 Mar 2015 17:05:03 +0100 (CET)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id 913293B968;
	Tue, 17 Mar 2015 17:05:03 +0100 (CET)
Received: from bifrost.das-netzwerkteam.de (bifrost.das-netzwerkteam.de
 [178.62.101.154]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP;
 Tue, 17 Mar 2015 16:05:03 +0000
Date: Tue, 17 Mar 2015 16:05:03 +0000
Message-ID: <20150317160503.Horde.w2PfHDjbkGaGJIzvi_LvJw8@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: Mihai Moldovan <ionic@ionic.de>, 820@bugs.x2go.org, Rok Mandeljc
 <rok.mandeljc@gmail.com>
References: <550752A1.1070807@gmail.com> <5507BE76.1060309@ionic.de>
 <5507C377.4060008@ionic.de> <5507FD3E.90904@gmail.com>
 <55083D83.9000702@ionic.de>
In-Reply-To: <55083D83.9000702@ionic.de>
User-Agent: Internet Messaging Program (IMP) H5 (6.2.2)
Accept-Language: de,en
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 178.62.101.154
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101
 Firefox/32.0 Iceweasel/32.0
Content-Type: multipart/signed; boundary="=_U4Kuu_j30hMQfp0EtHtzkQ8";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
Hi all,

On  Di 17 Mär 2015 15:43:15 CET, Mihai Moldovan wrote:

> On 17.03.2015 11:09 AM, Rok Mandeljc wrote:
>> On 17. 03. 2015 07:02, Mihai Moldovan wrote:
>> [...]
>>> I'll be adding IMEXIT="true" and your comment where gnome-terminal is
>>> defined, if that's OK with you?
>> If you are talking about the if [ "$cmd" == "TERMINAL" ] switch, then I
>> think it will not fix the case when session is "single command" and the
>> "gnome-terminal" is manually entered as a binary (with or without path).
>> I use such session definition on couple of workstations that have both
>> KDE and GNOME installed to get gnome-terminal instead of konsole... Not
>> sure how wide-spread that use case is, though; or if it could perhaps be
>> done better?
>
> Yes, you're right and that makes sense.
>
> As a side note, luckily, published applications are always handled with
> IMEXIT, so these are good.
>
>
>>> [...]
>>> N.B.: shouldn't this be also required for KDE4's konsole? Looks like it,
>>> but I'm not a KDE user, so... input welcome.
>> Capturing konsole's output to STDOUT seems to do the trick, at least at
>> the moment. So for now, it works correctly without setting IMEXIT.
>
> OK, thanks!

With gnome-terminal from GNOMEv2 IMEXIT needs to be false (because  
gnome-terminal (v2) does _not_ fork to background).

With gnome-terminal from GNOMEv3 IMEXIT needs to be true (because  
gnome-terminal (v3) forks to background).

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
[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 Mar 29 06:26:22 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.