Fedora 43 released its first wayland-only distro (Gnome). Wondering why not KDE?
After migration to wayland some 2 yrs ago all horrible linux GUI issues seem to be left in the past (now scaling works fine, fonts are crisp enough, etc).
Question: how i can make my system wayland-only? Disabling (and eventually removing) X11 legacy completely, as it also improves security?
There’s an interesting discussion on this on Phoronix: How do I disable xwayland and x11 in fedora to see whats already futureproof software. I don’t like security holes in my desktop computer
You could theoretically remove the package that contains the Xwayland binary, however this might remove other packages due to dependencies.
You could delete the installed binary, usually /usr/bin/Xwayland unexecutable, or make it unexecutable, but that might lead to issues for your Wayland compositor when it tries to use it.
Best way is probably to make the X11 Unix server socket unusable by removing access rights.
The socket usually looks like a file, e.g. /tmp/.X11-unix/X0Any X11 application will try to “open” it at startup and fail if it can’t.
Consequently the Wayland compositor will never get a request and will never try to start Xwayland.
Is this the best known method?