Subject: Bug#268: x2goruncommand - set IMEXIT="false" for gnome-terminal

From: Mike Gabriel <[email-masked]>
Date: Tue, 23 Jul 2013 22:25:09 +0200

Package: x2goserver
Version: 4.1.0.0
Tag: patch

----- Weitergeleitete Nachricht von [email-masked] -----
      Datum: Tue, 23 Jul 2013 20:44:16 +0200
        Von: Rok Mandeljc <[email-masked]>
Antwort an: [email-masked]
    Betreff: [X2Go-Dev] Patch: x2goruncommand - set IMEXIT="false" for  
gnome-terminal
         An: [email-masked]

Hello,

another patch from my attempt to set up x2go on my Fedora 19 box. It  
would appear that gnome-terminal in GNOME 3.8 returns immediately and  
runs in background, whereas the previous versions did not do so.  
Consequently, IMEXIT="false" should be set for gnome-terminal in the  
"TERMINAL" switch in x2goruncommand. If not, the terminal window  
appears on client for a second, then closes and the session is  
proclaimed to be finished. Patch attached.

Regards,
     Rok

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

-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: [email-masked], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
>From b9e80290138d25f00c4a6863c2d02d08b2df3f8d Mon Sep 17 00:00:00 2001
From: Rok Mandeljc <[email-masked]>
Date: Tue, 23 Jul 2013 20:32:07 +0200
Subject: [PATCH 2/2] x2goruncommand: set IMEXIT="false" for gnome-terminal
 when "TERMINAL" command is used. Makes this combination work on Fedora 19.

---
 x2goserver/bin/x2goruncommand | 1 +
 1 file changed, 1 insertion(+)

diff --git a/x2goserver/bin/x2goruncommand b/x2goserver/bin/x2goruncommand
index 2bcd8e0..b38fa4a 100755
--- a/x2goserver/bin/x2goruncommand
+++ b/x2goserver/bin/x2goruncommand
@@ -179,6 +179,7 @@ if [ "$cmd" == "TERMINAL" ]; then
 		IMEXIT="false"
 	elif  [ -e "/usr/bin/gnome-terminal" ]; then
 		cmd="/usr/bin/gnome-terminal"
+        IMEXIT="false"
 	elif  [ -e "/usr/bin/lxterminal" ]; then
 		cmd="/usr/bin/lxterminal"
 	elif  [ -e "/usr/bin/rxvt" ]; then
-- 
1.8.3.1