Problem GUI app inside container Arch

Hi guys, I had to install some programs inside a container with arch-linux because with akshara they threw some errors during the installation (and the record of the grub in the bios was deleted, but this is another problem). The installation inside the container is OK, but they can't find the display:
$ brave
[36657:36678:0503/135110.252611:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Authorization required, but no authorization protocol specified

[36657:36657:0503/135110.254060:ERROR:ui/ozone/platform/x11/ozone_platform_x11.cc:249] Missing X server or $DISPLAY
[36657:36657:0503/135110.254068:ERROR:ui/aura/env.cc:257] The platform failed to initialize. Exiting.
$ brave
[36657:36678:0503/135110.252611:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Authorization required, but no authorization protocol specified

[36657:36657:0503/135110.254060:ERROR:ui/ozone/platform/x11/ozone_platform_x11.cc:249] Missing X server or $DISPLAY
[36657:36657:0503/135110.254068:ERROR:ui/aura/env.cc:257] The platform failed to initialize. Exiting.
$ cudatext
Gtk-Message: 13:50:08.219: Failed to load module "canberra-gtk-module"
Authorization required, but no authorization protocol specified


(cudatext:30828): Gtk-WARNING **: 13:50:08.219: cannot open display: :0
$ cudatext
Gtk-Message: 13:50:08.219: Failed to load module "canberra-gtk-module"
Authorization required, but no authorization protocol specified


(cudatext:30828): Gtk-WARNING **: 13:50:08.219: cannot open display: :0
There is a guide to follow that I have not found? I installed BlendOS two days ago, so probably I'm doing some mistakes.
Solution:
@ム丂イ乇尺ノ丂ズ I have found the solution: xauth add {containerHostname}/unix:0 MIT-MAGIC-COOKIE-1 {numberInXauthority}
Jump to solution
9 Replies
Asterisk
Asterisk6d ago
Brave should be in the Software app As a flatpak Never heard of cudatext but it might be in there too Seems in the containers the apps can’t connect to xwayland
Giovanni9793
Giovanni9793OP6d ago
And Is It wanted or Is It a bug?
Asterisk
Asterisk6d ago
what
Giovanni9793
Giovanni9793OP6d ago
This
Asterisk
Asterisk6d ago
wanted? what does that mean you should be able to run gui apps in containers though Flatpak would be better here
Giovanni9793
Giovanni9793OP6d ago
So it's a bug
Asterisk
Asterisk5d ago
Yes
Solution
Giovanni9793
Giovanni97934d ago
@ム丂イ乇尺ノ丂ズ I have found the solution: xauth add {containerHostname}/unix:0 MIT-MAGIC-COOKIE-1 {numberInXauthority}
Giovanni9793
Giovanni9793OP4d ago
I don't know if this is something to edit in the repo (beacuse it should be done for every container at every reboot because of the .Xauthority changes) or something to write in some guide

Did you find this page helpful?