* [bug#66295] [DOCUMENTATION] guix shell with graphical software on Xorg
@ 2023-10-01 12:05 Timothee Mathieu
2023-10-26 12:55 ` bug#66295: " Mathieu Othacehe
0 siblings, 1 reply; 2+ messages in thread
From: Timothee Mathieu @ 2023-10-01 12:05 UTC (permalink / raw)
To: 66295
[-- Attachment #1: Type: text/plain, Size: 1004 bytes --]
Hello,
I am a guix beginner, slowly learning to use the shell command to make containers.
I tried to use the command from the documentation ( [ https://guix.gnu.org/manual/en/html_node/Invoking-guix-shell.html | https://guix.gnu.org/manual/en/html_node/Invoking-guix-shell.html ] ) to launch chromium with the advised command
guix shell --container --network --no-cwd ungoogled-chromium \
--preserve='^DISPLAY$' -- chromium
but with Xorg this does not seem to work due to permission error, the error is "Authorization required, but no authorization protocol specified".
I solved the problem by sharing .Xauthority and exposing the associated environment variable, and then it works:
guix shell --container --network --no-cwd ungoogled-chromium \
--preserve='^DISPLAY$' --preserve='^XAUTHORITY$' --share=$HOME/.Xauthority -- chromium
I think this should be added to the documentation to help people that want to use guix shell with Xorg.
Best regards,
Timothée Mathieu
[-- Attachment #2: Type: text/html, Size: 1555 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#66295: [DOCUMENTATION] guix shell with graphical software on Xorg
2023-10-01 12:05 [bug#66295] [DOCUMENTATION] guix shell with graphical software on Xorg Timothee Mathieu
@ 2023-10-26 12:55 ` Mathieu Othacehe
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Othacehe @ 2023-10-26 12:55 UTC (permalink / raw)
To: Timothee Mathieu; +Cc: 66295-done
Hello,
> I solved the problem by sharing .Xauthority and exposing the associated environment variable, and then it works:
> guix shell --container --network --no-cwd ungoogled-chromium \
Thanks for reporting! As there is no patch here I will close this
ticket, however ...
> --preserve='^DISPLAY$' --preserve='^XAUTHORITY$' --share=$HOME/.Xauthority -- chromium
> I think this should be added to the documentation to help people that want to use guix shell with Xorg.
... that seems like a nice idea. If you can send a patch and open a new
ticket that would be great :).
Mathieu
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-26 12:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-01 12:05 [bug#66295] [DOCUMENTATION] guix shell with graphical software on Xorg Timothee Mathieu
2023-10-26 12:55 ` bug#66295: " Mathieu Othacehe
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.