Toolbox/Distrobox X11 "Authorization required, but no authorization protocol specified" error #168
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This error prevents you from easily running X11 apps inside a Toolbox or Distrobox. There are some workarounds like running
xauth add $DISPLAY . $(xauth list | head -n 1 | cut -d' ' -f5)
, but we shouldn't require users to all do the workaround and instead put it globally somewhere.My idea is to add that command or something similar to
/etc/xrdp/startwm.sh
which starts the window manager for xrdp sessions.We can also try investigating FamilyWild type xauth entries (although X11 is hopelessly complex so I don't know if this will work).
Alright, I fixed this by adding
xauth add $DISPLAY . $(xauth list | head -n 1 | cut -d' ' -f5)
to the/etc/xrdp/startwm.sh
file which adds a FamilyWild type xauth entry. I have no idea how this works since I just searched online until I found a solution, but whatever. Closing.