unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: Run graphical application in container
Date: Tue, 16 Oct 2018 12:10:56 -0400	[thread overview]
Message-ID: <20181016161056.GA25057@jasmine.lan> (raw)
In-Reply-To: <87sh16hsy4.fsf@ambrevar.xyz>

[-- Attachment #1: Type: text/plain, Size: 1281 bytes --]

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:
> 
> --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: 
> --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=/tmp/.X11-unix' or '--share=/tmp/serverauth.$RANDOM' and then
`export DISPLAY=":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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2018-10-16 16:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-16 14:22 Run graphical application in container Pierre Neidhardt
2018-10-16 16:10 ` Leo Famulari [this message]
2018-10-16 18:25   ` Pierre Neidhardt
2018-10-17 12:20     ` Ludovic Courtès
2020-07-01 20:17       ` Christopher Lemmer Webber
2020-07-01 20:42   ` Christopher Lemmer Webber
2020-07-01 20:57     ` Pierre Neidhardt
2020-07-01 21:53       ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181016161056.GA25057@jasmine.lan \
    --to=leo@famulari.name \
    --cc=help-guix@gnu.org \
    --cc=mail@ambrevar.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).