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 #20 received at 1134@bugs.x2go.org (full text, mbox, reply):

Received: (at 1134) by bugs.x2go.org; 10 Jan 2017 22:41:33 +0000
From twtoal@ucdavis.edu  Tue Jan 10 23:41:31 2017
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_20,DKIM_SIGNED,
	DKIM_VALID,HTML_MESSAGE,URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from localhost (localhost [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 583E93CC5F
	for <1134@bugs.x2go.org>; Tue, 10 Jan 2017 23:41:31 +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 s38z3UT8C2Wl for <1134@bugs.x2go.org>;
	Tue, 10 Jan 2017 23:41:24 +0100 (CET)
Received: from mail-pf0-f171.google.com (mail-pf0-f171.google.com [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 1A26B5DA91
	for <1134@bugs.x2go.org>; Tue, 10 Jan 2017 23:41:24 +0100 (CET)
Received: by mail-pf0-f171.google.com with SMTP id 127so53803684pfg.1
        for <1134@bugs.x2go.org>; Tue, 10 Jan 2017 14:41:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=ucdavis-edu.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: AIkVDXIigE0D7jRx/K3XSTMYl92FaETRuyxsOBjA/u+D85V9n9pSeSUGf8dcz0A6yPRORQ==
X-Received: by with SMTP id m28mr6708847pgd.174.1484088082806;
        Tue, 10 Jan 2017 14:41:22 -0800 (PST)
Received: from dhcp22-gc1.genomecenter.ucdavis.edu (dhcp22-gc1.genomecenter.ucdavis.edu. [])
        by smtp.gmail.com with ESMTPSA id d15sm8131456pfl.46.2017.
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 10 Jan 2017 14:41:21 -0800 (PST)
From: Ted Toal <twtoal@ucdavis.edu>
Message-Id: <6C6C9CB6-4F5D-4F9C-B429-143A78490313@ucdavis.edu>
Content-Type: multipart/alternative;
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Subject: Re: [X2Go-Dev] Bug#1134: No environment variable available for
 testing	in .bash_profile or .bashrc
Date: Tue, 10 Jan 2017 14:41:20 -0800
In-Reply-To: <1fe5ef7f8e274faf9c51e7e06369ea01@CDS-EXCHG2.cds.local>
Cc: "1134@bugs.x2go.org" <1134@bugs.x2go.org>,
 "submit@bugs.x2go.org" <submit@bugs.x2go.org>
To: Rick Benkstein <rbenkstein@cendatsys.com>
References: <9E59DC33-FF80-4D84-BA9F-96BCFDA8B8CE@ucdavis.edu>
X-Mailer: Apple Mail (2.3259)
[Message part 1 (text/plain, inline)]
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> wrote:
> 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

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

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Tue May 28 20:56:56 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.