[X2Go-Dev] Bug#1134: Bug#1134: No environment variable available for testing in .bash_profile or .bashrc

Rick Benkstein rbenkstein at cendatsys.com
Tue Jan 10 23:44:12 CET 2017


Sorry – I am using headless servers that never have X running on them – That solution is limited.

Rick Benkstein

From: Ted Toal [mailto:twtoal at ucdavis.edu]
Sent: Tuesday, January 10, 2017 4:41 PM
To: Rick Benkstein <rbenkstein at cendatsys.com>
Cc: 1134 at bugs.x2go.org; submit at 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
twtoal at ucdavis.edu<mailto:twtoal at ucdavis.edu>



On Jan 10, 2017, at 2:12 PM, Rick Benkstein <rbenkstein at cendatsys.com<mailto:rbenkstein at 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 at lists.x2go.org<mailto:x2go-dev-bounces at lists.x2go.org> [mailto:x2go-dev-bounces at lists.x2go.org] On Behalf Of Ted Toal
Sent: Tuesday, January 10, 2017 3:17 PM
To: submit at bugs.x2go.org<mailto:submit at 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 at lists.x2go.org<mailto:x2go-dev at lists.x2go.org>
http://lists.x2go.org/listinfo/x2go-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20170110/4c7f3193/attachment.html>


More information about the x2go-dev mailing list