GNU bug report logs - #66295
[DOCUMENTATION] guix shell with graphical software on Xorg

Previous Next

Package: guix-patches;

Reported by: Timothee Mathieu <timothee.mathieu <at> inria.fr>

Date: Sun, 1 Oct 2023 12:49:04 UTC

Severity: normal

Done: Mathieu Othacehe <othacehe <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Mathieu Othacehe <othacehe <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#66295: closed ([DOCUMENTATION] guix shell with graphical
 software on Xorg)
Date: Thu, 26 Oct 2023 12:57:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 26 Oct 2023 14:55:48 +0200
with message-id <87msw5k0ff.fsf <at> gnu.org>
and subject line Re: bug#66295: [DOCUMENTATION] guix shell with graphical software on Xorg
has caused the debbugs.gnu.org bug report #66295,
regarding [DOCUMENTATION] guix shell with graphical software on Xorg
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
66295: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66295
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Timothee Mathieu <timothee.mathieu <at> inria.fr>
To: guix-patches <at> gnu.org
Subject: [DOCUMENTATION] guix shell with graphical software on Xorg
Date: Sun, 1 Oct 2023 14:05:10 +0200 (CEST)
[Message part 3 (text/plain, inline)]
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 



[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Mathieu Othacehe <othacehe <at> gnu.org>
To: Timothee Mathieu <timothee.mathieu <at> inria.fr>
Cc: 66295-done <at> debbugs.gnu.org
Subject: Re: bug#66295: [DOCUMENTATION] guix shell with graphical software
 on Xorg
Date: Thu, 26 Oct 2023 14:55:48 +0200
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


This bug report was last modified 1 year and 265 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.