Hi,
I recently discovered that electron-based apps can be forced to run in full Wayland mode, and my eyes are doing much better now, because fonts and UI elements are finally crisp and don’t look like a blurry mess anymore.
You needed libqt5-qtwayland with KDE5, no idea how is called in KDE6. It provides Wayland backend. Now if you force WAYLAND_DISPLAY for YaST to point to the user Wayland socket, it will work. Something like
su - root -c sh -c "WAYLAND_DISPLAY=$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY /usr/sbin/yast2"
I finally added this to my .bash_profile and re-logged in
export ELECTRON_OZONE_PLATFORM_HINT=auto
However, this only worked for teams-for-linux, but was not sufficient for Postman (which is also electron based). So for that one I used a different approach, via .desktop file:
Thanks, but it looks a bit complicated to replace all the commands for YaST GUIs, at this point I guess that I will just wait for the YaST GUI to be built against QT6
It will if you unset DISPLAY variable, but you are back to the possible problem of root owned files in user directories
andrei@leap155:~/src/rpm> DISPLAY= sudo -E yast2
QStandardPaths: runtime directory '/run/user/1000/' is not owned by UID 0, but a directory permissions 0755 owned by UID 1000 GID 100
andrei@leap155:~/src/rpm>
For this reason I explicitly set WAYLAND_DISPLAY to the full path so processes running as root can find it, but used su - to avoid leaking user environment.