Toolbox/Distrobox X11 "Authorization required, but no authorization protocol specified" error #168

Closed
opened 2022-07-29 01:25:33 +00:00 by a · 1 comment
Owner

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).

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).
a added this to the v9.0 milestone 2022-07-29 01:25:33 +00:00
a self-assigned this 2022-07-29 01:25:33 +00:00
a added this to the (deleted) project 2022-07-29 01:25:33 +00:00
Author
Owner

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.

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.
a closed this issue 2022-07-29 01:26:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: exozyme/exozyme#168
No description provided.