Subject: Fix unexpected resume

From: Ulrich Sibiller <[email-masked]>
Date: Fri, 2 Apr 2021 17:57:45 +0200

Package: x2goserver
Version: 4.1.0.3

Fix long-standing but #829 (https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=829)

See attached patch
From 77117fffa3328fb2080465240b98f71f5a1cb2ad Mon Sep 17 00:00:00 2001
From: Ulrich Sibiller <[email-masked]>
Date: Fri, 12 Mar 2021 11:48:19 +0100
Subject: [PATCH 4/4] x2gostartsession: fix long-standing bug of NX_CLIENT
 variable being wrong

Result of this bug was that any action that should display a dialog
would suspend he x2oagent.

Fixes https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1228 2/2
---
 x2goserver/bin/x2gostartagent | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/x2goserver/bin/x2gostartagent b/x2goserver/bin/x2gostartagent
index 7be7900..642d946 100755
--- a/x2goserver/bin/x2gostartagent
+++ b/x2goserver/bin/x2gostartagent
@@ -20,6 +20,7 @@
 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
 X2GO_LIB_PATH="$(x2gopath 'libexec')"
+X2GO_BASE_PATH="$(x2gopath 'base')"
 
 "${X2GO_LIB_PATH}/x2gosyslog" "${0}" 'info' "$(basename "${0}") called with options: ${*}"
 
@@ -204,7 +205,7 @@ if [[ "${LWORD}" = 'LIMIT' ]]; then
 	exit '9'
 fi
 
-export NX_CLIENT="${X2GO_LIB_PATH}/x2gosuspend-agent"
+export NX_CLIENT="${X2GO_BASE_PATH}/bin/x2godialog"
 
 COLORDEPTH="$(awk '{split($0,a,"-depth_"); print a[2]}' <<< "${X2GO_TYPE}")"
 
-- 
2.9.3