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


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#1134: [X2Go-Dev] Bug#1134: No environment variable available for testing	in .bash_profile or .bashrc
Reply-To: Rick Benkstein <rbenkstein@cendatsys.com>, 1134@bugs.x2go.org
Resent-From: Rick Benkstein <rbenkstein@cendatsys.com>
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, 10 Jan 2017 22:20:02 +0000
Resent-Message-ID: <handler.1134.B1134.148408677922244@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 1134
X-X2Go-PR-Package: nxagent
X-X2Go-PR-Keywords: 
Received: via spool by 1134-submit@bugs.x2go.org id=B1134.148408677922244
          (code B ref 1134); Tue, 10 Jan 2017 22:20:02 +0000
Received: (at 1134) by bugs.x2go.org; 10 Jan 2017 22:19:39 +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=0.8 required=3.0 tests=BAYES_50,URIBL_BLOCKED
	autolearn=ham version=3.3.2
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id BD28E3CC60
	for <1134@bugs.x2go.org>; Tue, 10 Jan 2017 23:19:37 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id kDCydqbhcBKf for <1134@bugs.x2go.org>;
	Tue, 10 Jan 2017 23:19:31 +0100 (CET)
X-Greylist: delayed 418 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Tue, 10 Jan 2017 23:19:30 CET
Received: from cal1-mh779.smtproutes.com (cal1-mh779.smtproutes.com [208.70.91.145])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 7624F3CC5F
	for <1134@bugs.x2go.org>; Tue, 10 Jan 2017 23:19:30 +0100 (CET)
X-Katharion-ID: 1484086334.61803.cal1-mh779
Received: from CDS-EXCHG2.cds.local ([207.67.66.9]) by 
  cal1-mh779.smtproutes.com [(192.69.16.145)] with ESMTP via TCP 
  (TLSv1.2/TLS_RSA_WITH_AES_256_CBC_SHA); 10 Jan 2017 22:12:14 +0000
Received: from CDS-EXCHG2.cds.local (10.1.1.211) by CDS-EXCHG2.cds.local
 (10.1.1.211) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 10 Jan
 2017 16:12:13 -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:12:13 -0600
From: Rick Benkstein <rbenkstein@cendatsys.com>
To: Ted Toal <twtoal@ucdavis.edu>, "1134@bugs.x2go.org" <1134@bugs.x2go.org>,
	"submit@bugs.x2go.org" <submit@bugs.x2go.org>
Thread-Topic: [X2Go-Dev] Bug#1134: No environment variable available for
 testing	in .bash_profile or .bashrc
Thread-Index: AQHSa4eLNJzf6zdw6kuzPWEBlREuOKEyRa3g
Date: Tue, 10 Jan 2017 22:12:12 +0000
Message-ID: <1fe5ef7f8e274faf9c51e7e06369ea01@CDS-EXCHG2.cds.local>
References: <9E59DC33-FF80-4D84-BA9F-96BCFDA8B8CE@ucdavis.edu>
In-Reply-To: <9E59DC33-FF80-4D84-BA9F-96BCFDA8B8CE@ucdavis.edu>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.2.1.21]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Ted,

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] On Behalf Of Ted Toal
Sent: Tuesday, January 10, 2017 3:17 PM
To: 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
x2go-dev@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-dev

Send a report that this bug log contains spam.


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