From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: Run graphical application in container Date: Tue, 16 Oct 2018 12:10:56 -0400 Message-ID: <20181016161056.GA25057@jasmine.lan> References: <87sh16hsy4.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCRw6-00006p-B7 for help-guix@gnu.org; Tue, 16 Oct 2018 12:11:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCRvz-0001tl-DG for help-guix@gnu.org; Tue, 16 Oct 2018 12:11:09 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:46637) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCRvz-0001sl-1Q for help-guix@gnu.org; Tue, 16 Oct 2018 12:11:03 -0400 Content-Disposition: inline In-Reply-To: <87sh16hsy4.fsf@ambrevar.xyz> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Pierre Neidhardt Cc: "help-guix@gnu.org" --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 16, 2018 at 04:22:43PM +0200, Pierre Neidhardt wrote: > I think this was mentioned before on the mailing list but I cannot find > it back. I think the first discussion was here, regarding IceCat: https://lists.gnu.org/archive/html/guix-devel/2016-07/msg00120.html And a more recent discussion is here: https://lists.gnu.org/archive/html/help-guix/2018-01/msg00056.html > The following won't work: >=20 > --8<---------------cut here---------------start------------->8--- > $ guix environment -C -N --ad-hoc epiphany -- epiphany > Unable to init server: Could not connect: Connection refused > Failed to parse arguments: Cannot open display:=20 > --8<---------------cut here---------------end--------------->8--- > > Is it possible to start a graphical application in a container? I think you'll need to share the host system's X socket, like '--share=3D/tmp/.X11-unix' or '--share=3D/tmp/serverauth.$RANDOM' and then `export DISPLAY=3D":0.0"` in the container. $RANDOM is a random string to make the filename unpredictable. So, it's definitely possible. In my experience, the hard part is finding the myriad directories used by the software and sharing or exposing them to the container. This is shown in the second discussion I linked above. --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlvGDYwACgkQJkb6MLrK fwi4chAAlTBSUrTBD6q9PF6t15oSY+ah11QvqWx5ruLLLMrs2NkSdUWDRFtD8Pax NuGFCoNmCfvkp+k+tLUFuCNjV4XGSLrExqZru9LaYsDRyg6lnYUo61Zb0UpYfI4/ LQdiKo+tPGZRIGdRM6vbYcNKLMj5LZ+fDPC8EPYVNFAhgi3uC1VGPlIqpdGu/ToE iR32V7euk2qoHbope9Wy7YJIq93CElb1bMBzLR662puSdWz0bP/DWTvgb2QldhqC 0xDwyebvnJP5ef2yo7d73RJvL1glEbAiL62G3smaaX5WmJtMm6jmUa+Dwa+F0fR6 ibi6n7kjZNcr8wzKVnWSZvGs8PrAkNuozFT8GLGN1hmFXcn6RuwcoH0+Q7f75PyP aC3etA0nLFQ0+r5uJ7ay3hT1n8OSHU0ElHjxpSbesmNfbfqrjDhWBBx6a/2SBaNM KbATuX6xNmDVqrOx9A8QT/mJB8ZXPitKLi2B+nQax2/af9w/WVYVFuv7+6JQJb2Y YfwTJp0OBh+I5zf39r5w3mm0mEAU/CiyXiNpX/RL577bqgdW8r+QFOnnAfVsN5I2 0wI3DFH9IcisU0uwlkF7xjHeWqUb/rAZJa9I4hsXpJlpuRgqAic984YPmRrjlwvX 6knmiscaSDo893pRBvCsoIiNP6VIteiZdYFUeDkT3XkjZq6PgDI= =z8aN -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8--