> > Actually, I came up with 2 more improvements, the final command is > > > > guix shell --container --no-cwd --network \ > > --share=/tmp/.X11-unix --expose="$XAUTHORITY" \ > > dino bash \ > > -- bash -c "DISPLAY='$DISPLAY' dino" > > caleb@miller ~❄️ guix shell --container --no-cwd --network \ > > --share=/tmp/.X11-unix --expose="$XAUTHORITY" \ > > dino bash \ > > -- bash -c "DISPLAY='$DISPLAY' dino" > Authorization required, but no authorization protocol specified > > > (process:1): Gtk-WARNING **: 17:16:40.534: cannot open display: :1
Ahh, I forgot we also need to pass the XAUTHORITY variable to the
container. How about this?
guix shell --container --no-cwd --network \
--share=/tmp/.X11-unix --expose="$XAUTHORITY" \
dino bash \
-- bash -c "DISPLAY='$DISPLAY' XAUTHORITY='$XAUTHORITY' dino"
Best
Wojtek
-- (sig_start)
website: https://koszko.org/koszko.html
fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A
follow me on Fediverse: https://friendica.me/profile/koszko/profile
♥ R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ== | ÷ c2luIHNlcGFyYXRlZCBtZSBmcm9tIEhpbQ==
✝ YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ== | ? U2hhbGwgSSBiZWNvbWUgSGlzIGZyaWVuZD8=
-- (sig_end)
On Thu, 07 Dec 2023 11:17:52 -0600 Caleb Herbert <[email protected]> wrote:
> Wojtek Kosior <[email protected]> writes:
>
> > Actually, I came up with 2 more improvements, the final command is
> >
> > guix shell --container --no-cwd --network \
> > --share=/tmp/.X11-unix --expose="$XAUTHORITY" \
> > dino bash \
> > -- bash -c "DISPLAY='$DISPLAY' dino"
>
> caleb@miller ~❄️ guix shell --container --no-cwd --network \
> > --share=/tmp/.X11-unix --expose="$XAUTHORITY" \
> > dino bash \
> > -- bash -c "DISPLAY='$DISPLAY' dino"
> Authorization required, but no authorization protocol specified
>
>
> (process:1): Gtk-WARNING **: 17:16:40.534: cannot open display: :1
>
>
> > Also, unless there is some reason no to, I suggest we keep the Guix
> > mailing list in the Cc field
>
> Oh, sorry. I pressed r instead of R when replying in Emacs. We should
> be back on the mailing list now.
>
pgpqRXNuhWbl9.pgp
Description: OpenPGP digital signature
