X2Go Bug report logs - #1134
No environment variable available for testing in .bash_profile or .bashrc

version graph

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

Reported by: Ted Toal <twtoal@ucdavis.edu>

Date: Tue, 10 Jan 2017 21:20:03 UTC

Severity: normal

Found in version 3.5.0

Full log

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

Received: (at 1134) by bugs.x2go.org; 10 Jan 2017 22:52:04 +0000
From rbenkstein@cendatsys.com  Tue Jan 10 23:51:55 2017
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,HTML_MESSAGE,
	URIBL_BLOCKED autolearn=unavailable version=3.3.2
Received: from localhost (localhost [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 5A6363CC5F;
	Tue, 10 Jan 2017 23:51:55 +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 K+vWJmDs8jeC; Tue, 10 Jan 2017 23:51:48 +0100 (CET)
X-Greylist: delayed 432 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Tue, 10 Jan 2017 23:51:47 CET
Received: from cal1-mh746b.smtproutes.com (cal1-mh746b.smtproutes.com [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id E3BE95DA91;
	Tue, 10 Jan 2017 23:51:47 +0100 (CET)
X-Katharion-ID: 1484088253.16508.cal1-mh746
Received: from CDS-EXCHG1.cds.local ([]) by 
  cal1-mh746.smtproutes.com [(] with ESMTP via TCP 
  (TLSv1.2/TLS_RSA_WITH_AES_256_CBC_SHA); 10 Jan 2017 22:44:13 +0000
Received: from CDS-EXCHG2.cds.local ( by CDS-EXCHG1.cds.local
 ( with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 10 Jan
 2017 16:44:12 -0600
Received: from CDS-EXCHG2.cds.local ([fe80::e5dd:7c7e:cb7c:78df]) by
 CDS-EXCHG2.cds.local ([fe80::e5dd:7c7e:cb7c:78df%12]) with mapi id
 15.00.1263.000; Tue, 10 Jan 2017 16:44:12 -0600
From: Rick Benkstein <rbenkstein@cendatsys.com>
To: Ted Toal <twtoal@ucdavis.edu>
CC: "1134@bugs.x2go.org" <1134@bugs.x2go.org>, "submit@bugs.x2go.org"
Subject: RE: [X2Go-Dev] Bug#1134: No environment variable available for
 testing	in .bash_profile or .bashrc
Thread-Topic: [X2Go-Dev] Bug#1134: No environment variable available for
 testing	in .bash_profile or .bashrc
Thread-Index: AQHSa4eLNJzf6zdw6kuzPWEBlREuOKEyRa3ggABtLAD//5vs0A==
Date: Tue, 10 Jan 2017 22:44:12 +0000
Message-ID: <3e60dc63f13045969a9961b84498501f@CDS-EXCHG2.cds.local>
References: <9E59DC33-FF80-4D84-BA9F-96BCFDA8B8CE@ucdavis.edu>
In-Reply-To: <6C6C9CB6-4F5D-4F9C-B429-143A78490313@ucdavis.edu>
Accept-Language: en-US
Content-Language: en-US
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: []
Content-Type: multipart/alternative;
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
Sorry – I am using headless servers that never have X running on them – That solution is limited.

Rick Benkstein

From: Ted Toal [mailto:twtoal@ucdavis.edu]
Sent: Tuesday, January 10, 2017 4:41 PM
To: Rick Benkstein <rbenkstein@cendatsys.com>
Cc: 1134@bugs.x2go.org; submit@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#1134: No environment variable available for testing in .bash_profile or .bashrc

DISPLAY is null (not defined) when x2go is running, as well as when it isn't, in my case.
Ted Toal, Postdoctoral Researcher
Carvajal-Carmona Lab
4502 GBSF, One Shields Ave
Davis, CA  956626  (530) 263-5986

On Jan 10, 2017, at 2:12 PM, Rick Benkstein <rbenkstein@cendatsys.com<mailto:rbenkstein@cendatsys.com>> wrote:


I have made my software switchable between GUI non-GUI by examining the DISPLAY variable - if it is NULL then x2go is not being used.

Rick Benkstein

-----Original Message-----
From: x2go-dev-bounces@lists.x2go.org<mailto:x2go-dev-bounces@lists.x2go.org> [mailto:x2go-dev-bounces@lists.x2go.org] On Behalf Of Ted Toal
Sent: Tuesday, January 10, 2017 3:17 PM
To: submit@bugs.x2go.org<mailto:submit@bugs.x2go.org>
Subject: [X2Go-Dev] Bug#1134: No environment variable available for testing in .bash_profile or .bashrc

Package: NXAGENT
Version: 3.5.0

I would like to bypass setting of certain environment variables in .bash_profile if I’m connecting via x2go, but it appears there are no environment variables I can test in .bash_profile to determine if this is an x2go session. After the session starts, some x2go environment variables are there, but not while .bash_profile is executing.
x2go-dev mailing list

[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Sat May 18 00:33:04 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.