<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Sorry ā€“ I am using headless servers that never have X running on them ā€“ That solution is limited.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Rick Benkstein<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Ted Toal [mailto:twtoal@ucdavis.edu]
<br>
<b>Sent:</b> Tuesday, January 10, 2017 4:41 PM<br>
<b>To:</b> Rick Benkstein <rbenkstein@cendatsys.com><br>
<b>Cc:</b> 1134@bugs.x2go.org; submit@bugs.x2go.org<br>
<b>Subject:</b> Re: [X2Go-Dev] Bug#1134: No environment variable available for testing in .bash_profile or .bashrc<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">DISPLAY is null (not defined) when x2go is running, as well as when it isn't, in my case.<o:p></o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="color:black">—<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Ted Toal, Postdoctoral Researcher<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Carvajal-Carmona Lab<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">4502 GBSF, One Shields Ave<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Davis, CA  956626  (530) 263-5986<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><a href="mailto:twtoal@ucdavis.edu">twtoal@ucdavis.edu</a><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Jan 10, 2017, at 2:12 PM, Rick Benkstein <<a href="mailto:rbenkstein@cendatsys.com">rbenkstein@cendatsys.com</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Ted,<br>
<br>
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.<br>
<br>
Rick Benkstein<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:x2go-dev-bounces@lists.x2go.org">x2go-dev-bounces@lists.x2go.org</a> [<a href="mailto:x2go-dev-bounces@lists.x2go.org">mailto:x2go-dev-bounces@lists.x2go.org</a>] On Behalf Of Ted Toal<br>
Sent: Tuesday, January 10, 2017 3:17 PM<br>
To: <a href="mailto:submit@bugs.x2go.org">submit@bugs.x2go.org</a><br>
Subject: [X2Go-Dev] Bug#1134: No environment variable available for testing in .bash_profile or .bashrc<br>
<br>
Package: NXAGENT<br>
Version: 3.5.0<br>
<br>
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.<br>
_______________________________________________<br>
x2go-dev mailing list<br>
<a href="mailto:x2go-dev@lists.x2go.org">x2go-dev@lists.x2go.org</a><br>
<a href="http://lists.x2go.org/listinfo/x2go-dev">http://lists.x2go.org/listinfo/x2go-dev</a><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>