From unknown Tue Apr 07 23:07:23 2026
X-Loop: owner@bugs.x2go.org
Subject: Bug#648: Python X2Go for Mac OS X
Reply-To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, 648@bugs.x2go.org
Resent-From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Mon, 20 Oct 2014 21:10:02 +0000
Resent-Message-ID: <handler.648.B.141383915022557@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 648
X-X2Go-PR-Package: python-x2go
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.141383915022557
          (code B); Mon, 20 Oct 2014 21:10:02 +0000
Received: (at submit) by bugs.x2go.org; 20 Oct 2014 21:05:50 +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=5.0 tests=BAYES_00,URIBL_BLOCKED
	autolearn=ham version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id D1B435DB47
	for <submit@bugs.x2go.org>; Mon, 20 Oct 2014 23:05:48 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 3CA8A166A
	for <submit@bugs.x2go.org>; Mon, 20 Oct 2014 23:05:48 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 2F9883BBA9
	for <submit@bugs.x2go.org>; Mon, 20 Oct 2014 23:05:48 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de
Received: from grimnir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id WZnScv2eGdoq for <submit@bugs.x2go.org>;
	Mon, 20 Oct 2014 23:05:48 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id 11ECF3BBA2
	for <submit@bugs.x2go.org>; Mon, 20 Oct 2014 23:05:48 +0200 (CEST)
Received: from p5B28513C.dip0.t-ipconnect.de (p5B28513C.dip0.t-ipconnect.de
 [91.40.81.60]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP; Mon,
 20 Oct 2014 21:05:48 +0000
Date: Mon, 20 Oct 2014 21:05:48 +0000
Message-ID: <20141020210548.Horde.Et-EBad9ekiUIxjlLJyzMg1@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: submit@bugs.x2go.org
User-Agent: Internet Messaging Program (IMP) H5 (6.2.2)
Accept-Language: en,de
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 91.40.81.60
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101
 Firefox/32.0 Iceweasel/32.0
Content-Type: multipart/signed; boundary="=_QM5fYp0e22bWFAu7TZh6Gg6";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0

This message is in MIME format and has been PGP signed.

--=_QM5fYp0e22bWFAu7TZh6Gg6
Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: python-x2go
Severity: wishlist
Version: 0.5.0.1

Hi all,

below is a recipe to get Python X2Go flying on Mac OS X (up to 10.10).

Mike


----- Weitergeleitete Nachricht von Pedro Pinto <ppinto@alum.mit.edu> -----
   Datum: Mon, 20 Oct 2014 14:01:32 -0700
     Von: Pedro Pinto <ppinto@alum.mit.edu>
Betreff: Re: Python X2Go for Mac OS X
      An: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Hi Mike,

Thanks for your help over the weekend.


> Have you had success already with monkey patching Xlib? Is the=20=20
>=20nxproxy build working on Yosemite?

Indeed, with your help I was able to patch Xlib and recompile nxproxy,=20=
=20
so=20that python-x2go works on yosemite!


> here is a short reminder message for sending me the diff between=20=20
>=20Python X2Go 0.4.0.8 and your fork for Mac OS X.

My fork of Python X2GO 0.4.0.8 is quite modified to tailor the=20=20
specifics=20of the product my company is working on
(https://www.lytmus.io/ <https://www.lytmus.io/>), but the basic=20=20
changes=20to get it working on Mac and Yosemite are trivial, and I have=20=
=20
included=20them below.
By the way, I=E2=80=99m happy to test the new release of Python X2go 0.5 ov=
er=20=20
the=20next weekend, just let me know.


Python-Xlib 0.15rc1
Replace two instances of:
	host.startswith('/tmp/')   	=E2=80=94=E2=80=94>         host.startswith('/=
')


NXproxy
Apply this patch and recompile:
http://code.x2go.org/gitweb?p=3Dnx-libs.git;a=3Dcommitdiff;h=3Db0727a02ff41=
7b3983b10e02dbc1eb9a4878b2ac=20=20
<http://code.x2go.org/gitweb?p=3Dnx-libs.git;a=3Dcommitdiff;h=3Db0727a02ff4=
17b3983b10e02dbc1eb9a4878b2ac>
Neverpanic helped me recompile nxproxy and nxcomp.


python x2go 0.4.0.8
You just need to specify the path to the nxproxy file on the Mac package.
The code below is specific to how I package my app (I use py2app).

     else:
	self.PROXY_CMD =3D "/usr/bin/nxproxy

	=E2=80=94=E2=80=94>


         elif _X2GOCLIENT_OS =3D=3D 'Darwin':
             if hasattr(sys, 'frozen'):    # if client app is frozen
                 self.PROXY_CMD =3D join(os.environ['RESOURCEPATH'], 'nxpro=
xy')
             else:
                 self.PROXY_CMD =3D join(x2go_abs, 'contrib', 'mac=E2=80=99=
,=20=20
nxproxy',=20'nxproxy')

      elif _X2GOCLIENT_OS =3D=3D 'Linux':
             if hasattr(sys, 'frozen'):    # if client app is frozen
                 self.PROXY_CMD =3D join(os.environ['RESOURCEPATH'],=20=20
'nxproxy',=20'start_nxproxy')
             else:
                 self.PROXY_CMD =3D join(x2go_abs, 'contrib', 'linux=E2=80=
=99,=20=20
'nxproxy',=20'start_nxproxy')

----- Ende der weitergeleiteten Nachricht -----


--=20

DAS-NETZWERKTEAM
mike=20gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.x=
fb

--=_QM5fYp0e22bWFAu7TZh6Gg6
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJURXkrAAoJEJr0azAldxsxbyoQAJlmy78mCLgHnWrXZ446nfe6
NAt+n/HJD0BusqXk2LGc7cfktHmC7Fn2qUuyG5lkEEe7fHyl4cuyCyjasf0OkOkT
Gq6iPlzTnCPzrqult9rVQovCshP3bC3WCBzEXEsh/8CCZRtEpuVVF5w3QtT7AZP8
RiddmiomehbqtRm1I4oRxUouMml/Hu1zhc+N3i8/QG0mDq2QYSoV7gAb9nRQihHN
BbHrfH0ZSr7I6LJU2qBAaqazTBmanaF+Abh90BSoiCktE7MJSFQukWCLOhLll/tk
fcDu83Bm4SQ4bUiF+Xbv4sVeajoXo8/mhLmi8mFI4Ad8VCOH1AylITxBbQoYvLWk
8xrPMzHXj6QxnRhJH3xX0LOaOl8c8IoxsJAf4Y8wlOR8PH4msE0iFYWSTFpJkEzQ
s93RBrny5ac0Jy2G4taT00GuNch9HCg8qCGkhHOd3iDev7+8vo5QHH1BzqhVu2eG
hKNP90ESe0ICzm3Uw9VyWVNEN7ZZdYd2Y+uZI+K04oHbvBXwOXbqzauBXF4JfK5t
us26oWkoe/wCz5tMaBDx/oosPOZivnRJJ2d4S9xTa0ehWmFSfDK39V9KyDtsSGOi
LRSTToEYTVztTtJzsVj9bzvKR9JUp2yJskYoHNox5k9BUzmApEJCyba/iAEb5NAT
tuzeFFAXYc50FaNrBUvX
=DQ8X
-----END PGP SIGNATURE-----

--=_QM5fYp0e22bWFAu7TZh6Gg6--
