From unknown Fri Aug 15 16:19:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#66295 <66295@debbugs.gnu.org> To: bug#66295 <66295@debbugs.gnu.org> Subject: Status: [DOCUMENTATION] guix shell with graphical software on Xorg Reply-To: bug#66295 <66295@debbugs.gnu.org> Date: Fri, 15 Aug 2025 23:19:12 +0000 retitle 66295 [DOCUMENTATION] guix shell with graphical software on Xorg reassign 66295 guix-patches submitter 66295 Timothee Mathieu severity 66295 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 01 08:48:29 2023 Received: (at submit) by debbugs.gnu.org; 1 Oct 2023 12:48:30 +0000 Received: from localhost ([127.0.0.1]:60842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmvs4-0004k5-Mf for submit@debbugs.gnu.org; Sun, 01 Oct 2023 08:48:29 -0400 Received: from lists.gnu.org ([2001:470:142::17]:51764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmvCo-0000pz-Kd for submit@debbugs.gnu.org; Sun, 01 Oct 2023 08:05:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qmvCS-0005Iq-No for guix-patches@gnu.org; Sun, 01 Oct 2023 08:05:29 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qmvCN-0001PP-Fk for guix-patches@gnu.org; Sun, 01 Oct 2023 08:05:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:message-id:subject:mime-version; bh=pLEvss13cl77xA4IE15AJHnfFRP32nmNpY95WB5WS74=; b=m9LZwsq9fioy15hJkxoC4ggcPArM1jmR8dSB533rgkjnlRCXlP9pLE8W 98hMVavYL01YZRgHh8zRe0G7/bahrneZCa6z0pEfJMXrZ4CNGuPL976qF sxVMmsnVQjCK3ioAexVZ5bHph6gjnwC4wXEl8Ik84B3FHW5kaJmnz+ZVf s=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=timothee.mathieu@inria.fr; spf=None smtp.helo=postmaster@zcs-store9.inria.fr Received-SPF: Pass (mail2-relais-roc.national.inria.fr: domain of timothee.mathieu@inria.fr designates 128.93.142.36 as permitted sender) identity=mailfrom; client-ip=128.93.142.36; receiver=mail2-relais-roc.national.inria.fr; envelope-from="timothee.mathieu@inria.fr"; x-sender="timothee.mathieu@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:128.93.142.0/24 ip4:192.134.164.0/24 ip4:128.93.162.160 ip4:89.107.174.7 mx ~all" Received-SPF: None (mail2-relais-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@zcs-store9.inria.fr) identity=helo; client-ip=128.93.142.36; receiver=mail2-relais-roc.national.inria.fr; envelope-from="timothee.mathieu@inria.fr"; x-sender="postmaster@zcs-store9.inria.fr"; x-conformance=spf_only X-IronPort-AV: E=Sophos;i="6.03,191,1694728800"; d="scan'208,217";a="128830318" X-MGA-submission: =?us-ascii?q?MDHmeZ7juBM7ydgNFH2X2X46sf6uyJ3gy7e/QV?= =?us-ascii?q?E24BbW+j6QTahx0TpQ5B5xy1xJfrmju6iefOz+OD026QTIeRBBFe3B2C?= =?us-ascii?q?JyZiSTfQFLAQ6od7aZE103f7E8JK4M3O/nOVNhDGK4+rieKGAlMYYu4R?= =?us-ascii?q?oCJzF8OJNBzmFdl9qm57VANg=3D=3D?= Received: from zcs-store9.inria.fr ([128.93.142.36]) by mail2-relais-roc.national.inria.fr with ESMTP; 01 Oct 2023 14:05:10 +0200 Date: Sun, 1 Oct 2023 14:05:10 +0200 (CEST) From: Timothee Mathieu To: guix-patches@gnu.org Message-ID: <1152861792.5557529.1696161910507.JavaMail.zimbra@inria.fr> Subject: [DOCUMENTATION] guix shell with graphical software on Xorg MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_3f4ff556-6229-4fd4-9d0e-7d3ba5063252" X-Originating-IP: [92.184.123.213] X-Mailer: Zimbra 8.8.15_GA_4562 (ZimbraWebClient - FF117 (Linux)/8.8.15_GA_3) Thread-Index: xBoyC0dWt48HOccQry2sYwPNTUuFkw== Thread-Topic: guix shell with graphical software on Xorg Received-SPF: pass client-ip=192.134.164.83; envelope-from=timothee.mathieu@inria.fr; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 01 Oct 2023 08:48:22 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=_3f4ff556-6229-4fd4-9d0e-7d3ba5063252 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,=20 I am a guix beginner, slowly learning to use the shell command to make cont= ainers.=20 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 advis= ed command=20 guix shell --container --network --no-cwd ungoogled-chromium \ --preserve=3D'^DISPLAY$' -- chromium=20 but with Xorg this does not seem to work due to permission error, the error= is "Authorization required, but no authorization protocol specified".=20 I solved the problem by sharing .Xauthority and exposing the associated env= ironment variable, and then it works:=20 guix shell --container --network --no-cwd ungoogled-chromium=A0=A0\=20 --preserve=3D'^DISPLAY$' --preserve=3D'^XAUTHORITY$' --share=3D$HOME/.Xauth= ority -- chromium=20 I think this should be added to the documentation to help people that want = to use guix shell with Xorg.=20 Best regards,=20 Timoth=E9e Mathieu=20 --=_3f4ff556-6229-4fd4-9d0e-7d3ba5063252 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,
<= br data-mce-bogus=3D"1">
I am a guix beginner, slowly learning to= use the shell command to make containers.
I tried to use the co= mmand from the documentation (https://guix.gnu.org/manual/en/html_node/I= nvoking-guix-shell.html)  to launch chromium with the advised comm= and
guix shell --container --network --no-=
cwd ungoogled-chromium \
  --preserve=3D'^DISPLAY$' -- chromium
but with Xorg this d= oes not seem to work due to permission error, the error is "Authorization r= equired, but no authorization protocol specified".
I solved the p= roblem by sharing .Xauthority and exposing the associated environment varia= ble, and then it works:
guix shell --con=
tainer --network --no-cwd ungoogled-chromium  \
--preserve= =3D'^DISPLAY$' --preserve=3D'^XAUTHORITY$' --share=3D$HOME/.Xauthority -- c= hromium
I think this should be added to = the documentation to help people that want to use guix shell with Xorg.

Best re= gards,
Timoth=E9e Mathieu



--=_3f4ff556-6229-4fd4-9d0e-7d3ba5063252-- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 26 08:56:32 2023 Received: (at 66295-done) by debbugs.gnu.org; 26 Oct 2023 12:56:33 +0000 Received: from localhost ([127.0.0.1]:60916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvzua-0006wI-Cd for submit@debbugs.gnu.org; Thu, 26 Oct 2023 08:56:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvzuX-0006w3-0G for 66295-done@debbugs.gnu.org; Thu, 26 Oct 2023 08:56:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvztv-0001q6-MH; Thu, 26 Oct 2023 08:55:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=aSlnTzf1QBfdCVLFWzmRhT5g6dfVtQEZ8K828pAVY+E=; b=pRoFjQDvnyRrhogeCg9k i0Re6yP+dYcd9qvDh66TiF36el6IOwvlgIJoF1rvus6KdNAKFhwwjJ7tfkFehZKi1eXHtp5Gupd/h 7OxT9pNyPNfViobXAMug96lV/QSUWh4kZwGLYszCPypiaQWmNH6uosQTMfcl9GSjOolF3gZ6Sh7yY 0nhtw4aQIobgsbFKBw04UwP0LSRK0VzRyRvNS25Lvu6XzIus8H7NM2rIbHv5vr8+31g/n7BaTJdXB tuun1BN8j1+5CaPZ4C/k7ErUw3aBk6ccPdI48Ibr/7FQlN22zn7F7VaWLZEuW378Nf0jL37TBEvKn t01dTco3e1Dc4A==; From: Mathieu Othacehe To: Timothee Mathieu Subject: Re: bug#66295: [DOCUMENTATION] guix shell with graphical software on Xorg In-Reply-To: <1152861792.5557529.1696161910507.JavaMail.zimbra@inria.fr> (Timothee Mathieu's message of "Sun, 1 Oct 2023 14:05:10 +0200 (CEST)") References: <1152861792.5557529.1696161910507.JavaMail.zimbra@inria.fr> Date: Thu, 26 Oct 2023 14:55:48 +0200 Message-ID: <87msw5k0ff.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66295-done Cc: 66295-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From unknown Fri Aug 15 16:19:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 24 Nov 2023 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator