X2Go Bug report logs - #1250
X2Go Doesn't Set Remote Environment

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

Reported by: Matthew Rubenstein <matthew.rubenstein@blue-green-group.com>

Date: Tue, 6 Feb 2018 19:10:01 UTC

Severity: wishlist

Full log

🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#1250: X2Go Doesn't Set Remote Environment
Reply-To: Matthew Rubenstein <matthew.rubenstein@blue-green-group.com>, 1250@bugs.x2go.org
Resent-From: Matthew Rubenstein <matthew.rubenstein@blue-green-group.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>, owner@bugs.x2go.org
X-Loop: owner@bugs.x2go.org
Resent-Date: Tue, 06 Feb 2018 19:10:01 +0000
Resent-Message-ID: <handler.1250.B.151794411020031@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 1250
X-X2Go-PR-Package: x2goclient, x2gostartagent
Received: via spool by submit@bugs.x2go.org id=B.151794411020031
          (code B); Tue, 06 Feb 2018 19:10:01 +0000
Received: (at submit) by bugs.x2go.org; 6 Feb 2018 19:08:30 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on
X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,DKIM_SIGNED,
	DKIM_VALID autolearn=ham autolearn_force=no version=3.4.1
Received: from localhost (localhost [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id CF1965DACF
	for <submit@bugs.x2go.org>; Tue,  6 Feb 2018 20:08:27 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([])
	by localhost (ymir.das-netzwerkteam.de []) (amavisd-new, port 10024)
	with ESMTP id uNhLiZw5I4H8 for <submit@bugs.x2go.org>;
	Tue,  6 Feb 2018 20:08:17 +0100 (CET)
Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 224F75DAC8
	for <submit@bugs.x2go.org>; Tue,  6 Feb 2018 20:08:16 +0100 (CET)
Received: by mail-qk0-x229.google.com with SMTP id l29so3691877qkj.8
        for <submit@bugs.x2go.org>; Tue, 06 Feb 2018 11:08:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=blue-green-group-com.20150623.gappssmtp.com; s=20150623;
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
X-Gm-Message-State: APf1xPBamZBlHlohmXQ72uAXedatywMS1nv7VckGoBzZBax8g3oLOJle
X-Google-Smtp-Source: AH8x226ONNo46MZNW7NqmN+S1xF5vZITWim9SbZ7GJ6as181qkRqfzmIbpGYSLeaMlHwFT8uArhl9g==
X-Received: by with SMTP id x136mr4599328qka.223.1517944095501;
        Tue, 06 Feb 2018 11:08:15 -0800 (PST)
Received: from studion99 (ool-45756eaa.dyn.optonline.net. [])
        by smtp.gmail.com with ESMTPSA id z66sm7797090qkc.9.2018.
        for <submit@bugs.x2go.org>
        (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
        Tue, 06 Feb 2018 11:08:14 -0800 (PST)
From: Matthew Rubenstein <matthew.rubenstein@blue-green-group.com>
X-Google-Original-From: Matthew Rubenstein <Matthew.Rubenstein@blue-green-group.com>
Message-ID: <1517944093.27892.944.camel@blue-green-group.com>
To: submit@bugs.x2go.org
Date: Tue, 06 Feb 2018 14:08:13 -0500
Organization: Blue Green Group, LLC
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.26.1-1 
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Package: x2goclient, x2gostartagent
Severity: wishlist

	Hello. x2goclient and x2gostartagent (and the rest of X2Go) use
libssh, but do not use either the local ssh ~/.ssh/environment or the
remote sshd ~/.ssh/rc . Neither does X2Go use its own corresponding
config files for the remote environment. X2Go will use the remote
~/.bashrc when X2Go starts the remote bash shell, but if that .bashrc
quits upon detecting a non-interactive bash session (such as the ones
X2Go creates) then those .bashrc configs aren't applied to the X2Go
session. That non-interactive=quit logic is standard practice, and
indeed Ubuntu's /etc/skel/.bashrc includes it (among many other

	This lack of X2Go session configuration can cause remote client
applications to fail. Especially where the X2Go 'Session type' =
'Single application', where the environment X2Go is using was set per-
user at (interactive) login prior to using X2Go. The hackaround is to
create a per-user wrapper that sets the environment (but can't just
source ~/.bashrc for the non-interactive session). This is unmanageable
especially for multiple users and multiple local/remote hosts, and
makes setting the remote environment complex and time consuming
(compared to the basic X2Go invocation configuration). It also requires
the user have access to the remote filesystem, probably to a remote
shell, and to use it to write freeform wrappers.

	The best support for setting the environment would use a local
~/.x2gorc that can set the remote environment with bash syntax,
overridden by a GUI in x2goclient, overridden by a remote ~/.x2gorc ,
with perhaps system defaults local and remote in /etc/x2go/.x2gorc .
The X2Go config files/GUI could include an option to use their
ssh(d)equivalents, ie. [. ~/.ssh/environment].

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Sun Jan 29 09:26:34 2023; 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.