Hi, El 19/11/23 a las 8:56, Giacomo escribió:
Hi Nicolas,It seems you are running this command under Wayland and the person who wrote it did under X11.Maybe try the same command under X11?
I'm using X11 and get the same error.I don't know what's the appropriate way of running a contained browser, but the following command from my notes works to some extent:
guix shell -CN --no-cwd ungoogled-chromium fontconfig \ -E "^DISPLAY$" -E "^XAUTHORITY$" --expose="$XAUTHORITY" \ --expose=/tmp/.X11-unix/ --expose=$HOME/.Xauthority \ --expose=/etc/machine-id --expose=/dev/dri \ --expose=/var/run/dbus/system_bus_socket \ -- chromium --incognitoThe browser starts, and I can browse the web, but there are lots of other error messages.
Also, I didn't take note on why I need to expose all these resources, so be careful :)
Il 18 novembre 2023 15:05:28 CET, "Nicolas Débonnaire" <[email protected]> ha scritto:Hi, When running the example herebelow, from the guix shell documentation, an error is returned: guix shell --container --network --no-cwd ungoogled-chromium \ --preserve='^DISPLAY$' -- chromium [1:14:1118/140039.476338:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Authorization required, but no authorization protocol specified [1:1:1118/140039.498151:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY [1:1:1118/140039.498166:ERROR:env.cc(255)] The platform failed to initialize. Exiting.
OpenPGP_0x0AB0D067012F08C3.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
