How to disable XWayland for the Plasma Wayland Session?

There is interest in being able to remove the XWayland capability, including XWaylandVideobridge.

This may save RAM and reduce attack surface.

People generally agree that having control over these things helps a lot.

Having a way to disable these (apart from a Flatpak override, for all apps) would help.

You need to turn off this CMake option: CMakeLists.txt · master · Plasma / KWin · GitLab

Edit plasma-kwin_wayland.service to it doesn’t use the --xwayland commmand line option.

No recompilation needed.

2 Likes

thanks! that is the right answer, for now