~> myrlyn-sudo
Logging to /tmp/myrlyn-root/myrlyn.log
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
FATAL: Could not connect to the display.
That error above is with the environment option like so :
QT_QPA_PLATFORM=xcb (this added to the labwc environment)
When omitting QT_QPA_PLATFORM=xcb It spits more errors suggesting to add xcb, wayland, wayland-egl etc.
I have an older tumbleweed with the last dup earlier this week and myrlyn is not updated yet to the latest version.
I tried copying the /usr/lib/myrlyn-sdo script to this tumbleweed with a problem and tried myrlyn-sudo in kde, labwc, hyprland and xfce-wayland with labwc and myrlyn is back to working again. With the replacement of the myrlyn-sudo script in the latest myrlyn it broke the kde theming and revert ed to the light theme.
Another update
Changing the XDG_RUNTIME_DIR=/run/user/0 to `XDG_RUNTIME_DIR=/run/user/$UID
solve the issue also which I think was mentioned in Myrlyn Theme Query - #49 by ikanotheokara
Yesterday, I have to go to that thread again to confirm.
Generally, myrlyn-sudo and the Myrlyn binary are independent enough from one another that it’s safe to just grab the latest myrlyn-sudo from the GitHub source project.
That line 11 is now
XDG_RUNTIME_DIR=/run/user/$UID
which should be more in line with expectations since root (UID 0) probably doesn’t have anything useful there. In the past we had several discussions which was better, /run/user/$UID or /run/user/0, and it was changed back and forth; more trial & error than really knowing what exactly that meant.
Qt now wanting xcbis not a good sign; it means that it tried to use the Wayland plug-in and failed, and now wants to fall back to X11. With a little luck this should also be fixed with the latest myrlyn-sudo.
But if not, it’s back to debugging which environment variable is now missing, or maybe which one should be omitted.
And of course like always, try the simple things first: Shell window, sudo -E myrlyn, myrlyn-sudo, maybe throw in a prayer to the Flying Spaghetti Monster.