From twtoal@ucdavis.edu  Tue Jan 10 23:44:43 2017
Received: (at 1134) by bugs.x2go.org; 10 Jan 2017 22:44:45 +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=-1.9 required=3.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,HTML_MESSAGE,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 62A393CC5F
	for <1134@bugs.x2go.org>; Tue, 10 Jan 2017 23:44:43 +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 CU2S6TrA5ZWd for <1134@bugs.x2go.org>;
	Tue, 10 Jan 2017 23:44:36 +0100 (CET)
Received: from mail-pf0-f171.google.com (mail-pf0-f171.google.com [209.85.192.171])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 432325DA91
	for <1134@bugs.x2go.org>; Tue, 10 Jan 2017 23:44:36 +0100 (CET)
Received: by mail-pf0-f171.google.com with SMTP id 189so41520476pfu.3
        for <1134@bugs.x2go.org>; Tue, 10 Jan 2017 14:44:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=ucdavis-edu.20150623.gappssmtp.com; s=20150623;
        h=from:message-id:mime-version:subject:date:in-reply-to:cc:to
         :references;
        bh=g0lFSHV/3UTHfqqsKP4jkXyldBZsppPy/cY4vETmlNE=;
        b=C5qvKJPac6E+ePlhq36uGTovfm9wpYh7YTsTYMxWWySibDTmvkzPj5kPrQVN2QCJoP
         5rx+h0oUa35xCivdheeJdwG+vulgIdF5CXkZBGrYi0BzMvYK120FzfNaamQvLwujdiNc
         v+D8SKtLS+G+MWVBCQH+fKUp1J8yDrisWgIWqOhHROIUYmnezDluHxkOD4y54CEgM9Mf
         PG0cI7IN81MeyA4/R0tVIwUtpaeQ/rqJWLLxjrMfzDk2qUX15W4ffavItlpbWAL8JNxm
         1/uI7V/wMi/jjqWFNHqum26RQMY8/78WFaXGIVdepuMTwpKOVKlj9k29FIbPG+hFQpbx
         V9WA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:message-id:mime-version:subject:date
         :in-reply-to:cc:to:references;
        bh=g0lFSHV/3UTHfqqsKP4jkXyldBZsppPy/cY4vETmlNE=;
        b=l4QgdWm3tWBnzXIobNjoO42qjuw3SmMczi+dH6QfOnUt3p+zUIp3C4DxXHg2uNG2XV
         zIPmWLBV2SE+HGYOA8wM1W48rUiIG1lEuUjlZTbUEPsl2quEbTdsB2J1dOPrBtEGDsZm
         7KpfVVfrH5Lu8RyIEGjvI8tX25njVwJTI+vKJz+3CqVEDxnqR7XXlJ1leA51N2zrfFCP
         fGUWElyeL07dk65wNA79nfJ+MjulVTmoqmqdys3ZJmquZAkG/hqGio46zKZ6S2TQ6uNj
         UKkCDk/yKPZMuU8RoaK1IsFK2dXkUU8PdnshN2/O9RekXSehkh8Nlj+MgzgbmxbNOIWJ
         fHjw==
X-Gm-Message-State: AIkVDXKCOwx38nAReuHV/U5eg45RoJdZHnFT8f4GfC8KBX/k0TuT57qHnCKI67s+1cUr0w==
X-Received: by 10.84.232.78 with SMTP id f14mr8368232pln.27.1484088274806;
        Tue, 10 Jan 2017 14:44:34 -0800 (PST)
Received: from dhcp22-gc1.genomecenter.ucdavis.edu (dhcp22-gc1.genomecenter.ucdavis.edu. [128.120.136.85])
        by smtp.gmail.com with ESMTPSA id y62sm8138855pfk.52.2017.01.10.14.44.33
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 10 Jan 2017 14:44:33 -0800 (PST)
From: Ted Toal <twtoal@ucdavis.edu>
Message-Id: <445DE45A-EA31-432E-BFB6-69AD1E7CF78B@ucdavis.edu>
Content-Type: multipart/alternative;
 boundary="Apple-Mail=_3C041D83-F9B7-4E78-A3B7-7895E0BC8216"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Subject: Re: [X2Go-Dev] Bug#1134: Bug#1134: Bug#1134: No environment variable
 available for testing in .bash_profile or .bashrc
Date: Tue, 10 Jan 2017 14:44:32 -0800
In-Reply-To: <047392b2-73a1-b2c6-9ad5-512b1cc06696@baur-itcs.de>
Cc: Rick Benkstein <rbenkstein@cendatsys.com>
To: Stefan Baur <X2Go-ML-1@baur-itcs.de>,
 1134@bugs.x2go.org
References: <9E59DC33-FF80-4D84-BA9F-96BCFDA8B8CE@ucdavis.edu>
 <1fe5ef7f8e274faf9c51e7e06369ea01@CDS-EXCHG2.cds.local>
 <047392b2-73a1-b2c6-9ad5-512b1cc06696@baur-itcs.de>
X-Mailer: Apple Mail (2.3259)


--Apple-Mail=_3C041D83-F9B7-4E78-A3B7-7895E0BC8216
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

I=E2=80=99m running in windowed mode (XFCE) through x2go and XQuartz.  =
The DISPLAY environment variable is not set.=20

=E2=80=94
Ted Toal, Postdoctoral Researcher
Carvajal-Carmona Lab
4502 GBSF, One Shields Ave
Davis, CA  956626  (530) 263-5986
twtoal@ucdavis.edu




> On Jan 10, 2017, at 2:28 PM, Stefan Baur <X2Go-ML-1@baur-itcs.de> =
wrote:
>=20
> Am 10.01.2017 um 23:12 schrieb Rick Benkstein:
>=20
>> 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.
>=20
> Unless, of course, you are occasionally using a local X session, or
> regular X forwarding, where this approach will bite you in the
> posterior, falsely assuming that you're running an X2Go session when
> it's regular X.
>=20
> The deeper-rooted issue here is that X2Go-specific variables are only
> set when a session is run in fullscreen or windowed mode, displaying =
an
> entire desktop.
>=20
> For single/published applications, no such X2Go-specific variable is =
set.
>=20
> However, you can check if:
>=20
> the command x2golistsessions is executable (=3Dwe're on an X2GoServer =
-
> important in case of NFS-mounted home directories)
>=20
> AND the DISPLAY variable is set
>=20
> AND client DISPLAY and SSH client IP match an X2Go session marked as =
"R"
> for running.
>=20
> See <http://wiki.x2go.org/doku.php/doc:howto:ssh-agent-workaround>,
> section "# Part that runs in X2Go session", for an example where you
> could lift the required code.
>=20
> What you don't need is the part that checks for a file named
> "~/.x2go/agent", so just remove that part.
>=20
> Kind Regards,
> Stefan
>=20
> --=20
> BAUR-ITCS UG (haftungsbeschr=C3=A4nkt)
> Gesch=C3=A4ftsf=C3=BChrer: Stefan Baur
> Eichen=C3=A4ckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
> Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
>=20
> _______________________________________________
> x2go-dev mailing list
> x2go-dev@lists.x2go.org
> http://lists.x2go.org/listinfo/x2go-dev


--Apple-Mail=_3C041D83-F9B7-4E78-A3B7-7895E0BC8216
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">I=E2=80=99m running in windowed mode (XFCE) through x2go and =
XQuartz. &nbsp;The DISPLAY environment variable is not set.&nbsp;<div =
class=3D""><br class=3D""><div class=3D"">
<div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; orphans: =
auto; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div class=3D"">=E2=80=94</div><div class=3D"">Ted Toal, =
Postdoctoral Researcher</div><div class=3D"">Carvajal-Carmona =
Lab</div><div class=3D"">4502 GBSF, One Shields Ave</div><div =
class=3D"">Davis, CA &nbsp;956626 &nbsp;(530) 263-5986</div><div =
class=3D""><a href=3D"mailto:twtoal@ucdavis.edu" =
class=3D"">twtoal@ucdavis.edu</a></div></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"><br =
class=3D"Apple-interchange-newline">
</div>
<br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Jan 10, 2017, at 2:28 PM, Stefan Baur &lt;<a =
href=3D"mailto:X2Go-ML-1@baur-itcs.de" =
class=3D"">X2Go-ML-1@baur-itcs.de</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">Am =
10.01.2017 um 23:12 schrieb Rick Benkstein:<br class=3D""><br =
class=3D""><blockquote type=3D"cite" class=3D"">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 class=3D""></blockquote><br =
class=3D"">Unless, of course, you are occasionally using a local X =
session, or<br class=3D"">regular X forwarding, where this approach will =
bite you in the<br class=3D"">posterior, falsely assuming that you're =
running an X2Go session when<br class=3D"">it's regular X.<br =
class=3D""><br class=3D"">The deeper-rooted issue here is that =
X2Go-specific variables are only<br class=3D"">set when a session is run =
in fullscreen or windowed mode, displaying an<br class=3D"">entire =
desktop.<br class=3D""><br class=3D"">For single/published applications, =
no such X2Go-specific variable is set.<br class=3D""><br =
class=3D"">However, you can check if:<br class=3D""><br class=3D"">the =
command x2golistsessions is executable (=3Dwe're on an X2GoServer -<br =
class=3D"">important in case of NFS-mounted home directories)<br =
class=3D""><br class=3D"">AND the DISPLAY variable is set<br =
class=3D""><br class=3D"">AND client DISPLAY and SSH client IP match an =
X2Go session marked as "R"<br class=3D"">for running.<br class=3D""><br =
class=3D"">See &lt;<a =
href=3D"http://wiki.x2go.org/doku.php/doc:howto:ssh-agent-workaround" =
class=3D"">http://wiki.x2go.org/doku.php/doc:howto:ssh-agent-workaround</a=
>&gt;,<br class=3D"">section "# Part that runs in X2Go session", for an =
example where you<br class=3D"">could lift the required code.<br =
class=3D""><br class=3D"">What you don't need is the part that checks =
for a file named<br class=3D"">"~/.x2go/agent", so just remove that =
part.<br class=3D""><br class=3D"">Kind Regards,<br class=3D"">Stefan<br =
class=3D""><br class=3D"">-- <br class=3D"">BAUR-ITCS UG =
(haftungsbeschr=C3=A4nkt)<br class=3D"">Gesch=C3=A4ftsf=C3=BChrer: =
Stefan Baur<br class=3D"">Eichen=C3=A4ckerweg 10, 89081 Ulm | =
Registergericht Ulm, HRB 724364<br class=3D"">Fon/Fax 0731 40 34 =
66-36/-35 | USt-IdNr.: DE268653243<br class=3D""><br =
class=3D"">_______________________________________________<br =
class=3D"">x2go-dev mailing list<br class=3D""><a =
href=3D"mailto:x2go-dev@lists.x2go.org" =
class=3D"">x2go-dev@lists.x2go.org</a><br =
class=3D"">http://lists.x2go.org/listinfo/x2go-dev</div></div></blockquote=
></div><br class=3D""></div></body></html>=

--Apple-Mail=_3C041D83-F9B7-4E78-A3B7-7895E0BC8216--

