How open GUI app which are inside Distrobox

Hi,

I use Fedora workstation 43 (fresh installed). I installed an app inside distrobox.

When I run the app inside Distrobox, It gives this error:

Error getting authority: Error initializing authority: Could not connect: No such file or directory

I found this:

It writes run this on host:

xauth add "toolbox/unix$DISPLAY" . "$(xauth list | grep "^$(hostnamectl hostname)/unix$DISPLAY\s*MIT-MAGIC-COOKIE-1\s*" | awk '{print $3}')"

I trust 100% to the software which is inside Distrobox. But I don’t know if the above command is secure.

Can you please give me some advice.

Thank you :heart:

Not sure exactly of what it does but you can always run it piece by piece to have it more secure. Once you understand the different pieces of the entire bash line, you can confidently run the entire thing. :+1:t2:

I don’t really see why it wouldn’t be safe tho. :slight_smile:

PS: X11 is not really secure by default so you’re not in a super secure situation to begin with haha.

You could have a look at BoxBuddy, a flatpak app designed to help you work with distroboxes.

If you install a GUI app in a distrobox, BoxBuddy will let you pin that apps icon to your dash just like apps installed in your host machine.

1 Like

I had tried BoxBuddy. Its only GUI to simplify the distrobox process. But it did not solved my issue in this case.

Anyway, I installed that app via Nix. It worked.

But its very difficult to run KDE GUI apps on Gnome via Nix or Distrobox. Especially for apps which requires root permissions.