* bug#61697: Chromium with guix shell container from the manual doesn't work.
@ 2023-02-21 16:50 email
2023-03-06 13:07 ` email
2023-04-16 10:37 ` bug#61697: Виталий Ковалев
0 siblings, 2 replies; 4+ messages in thread
From: email @ 2023-02-21 16:50 UTC (permalink / raw)
To: 61697
Followed the manual for guix shell here:
https://guix.gnu.org/en/manual/devel/en/guix.html#Invoking-guix-shell
Initially I wanted to setup an icecat container so I just removed
chromium for icecat, I got this error:
```
guix shell --container --network --no-cwd icecat --preserve='^DISPLAY$'
-- icecat
Authorization required, but no authorization protocol specified
Unable to init server: Could not connect: Connection refused
Error: cannot open display: :0.0
```
I tried chromium too. It still errors out but with a different error:
```
guix shell --container --network --no-cwd ungoogled-chromium
--preserve='^DISPLAY$' -- chromium
Authorization required, but no authorization protocol specified
[1:1:0221/164151.354628:ERROR:ozone_platform_x11.cc(238)] Missing X
server or $DISPLAY
[1:1:0221/164151.354678:ERROR:env.cc(255)] The platform failed to
initialize. Exiting.
```
Chromium starts just fine without the container flag so the problem
seems to be in the container flag specifically.
Msavoritias
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#61697: Chromium with guix shell container from the manual doesn't work.
2023-02-21 16:50 bug#61697: Chromium with guix shell container from the manual doesn't work email
@ 2023-03-06 13:07 ` email
2023-04-11 13:36 ` Simon Tournier
2023-04-16 10:37 ` bug#61697: Виталий Ковалев
1 sibling, 1 reply; 4+ messages in thread
From: email @ 2023-03-06 13:07 UTC (permalink / raw)
To: 61697
The problem was that in xorg you need the specific option:
```
--share=/tmp
```
So the command would look like:
```
guix shell --container --network --share=/tmp --no-cwd icecat
--preserve='^DISPLAY$' -- icecat
```
While in wayland it works as is.
Next step would be documenting this in the manual.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#61697: Chromium with guix shell container from the manual doesn't work.
2023-03-06 13:07 ` email
@ 2023-04-11 13:36 ` Simon Tournier
0 siblings, 0 replies; 4+ messages in thread
From: Simon Tournier @ 2023-04-11 13:36 UTC (permalink / raw)
To: email; +Cc: 61697
Hi,
On lun., 06 mars 2023 at 15:07, "email@msavoritias.me" <email@msavoritias.me> wrote:
> Next step would be documenting this in the manual.
Do you want to give a try in fixing the example provided by the manual? WDYT?
Cheers,
simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#61697:
2023-02-21 16:50 bug#61697: Chromium with guix shell container from the manual doesn't work email
2023-03-06 13:07 ` email
@ 2023-04-16 10:37 ` Виталий Ковалев
1 sibling, 0 replies; 4+ messages in thread
From: Виталий Ковалев @ 2023-04-16 10:37 UTC (permalink / raw)
To: 61697
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
Still have the same error with specifying --share=/tmp. Maybe I should add
something else?
```
kovalev@mirage ~$ guix shell --container --network --preserve="^DISPLAY$"
--no-cwd --share=/tmp ungoogled-chromium -- chromium
Authorization required, but no authorization protocol specified
[1:1:0416/103619.358790:ERROR:ozone_platform_x11.cc(238)] Missing X server
or $DISPLAY
[1:1:0416/103619.358806:ERROR:env.cc(255)] The platform failed to
initialize. Exiting.
```
```
kovalev@mirage ~$ guix shell --container --network --preserve="^DISPLAY$"
--no-cwd --share=/tmp icecat -- icecat
Authorization required, but no authorization protocol specified
Unable to init server: Could not connect: Connection refused
Error: cannot open display: :1
```
[-- Attachment #2: Type: text/html, Size: 887 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-24 4:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21 16:50 bug#61697: Chromium with guix shell container from the manual doesn't work email
2023-03-06 13:07 ` email
2023-04-11 13:36 ` Simon Tournier
2023-04-16 10:37 ` bug#61697: Виталий Ковалев
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).