Draft: Move kwin launching to systemd / plasma-session
Currently we have a whole daisy-chain of startplasmawayland-> kwin -> startplasmawaylandsession -> launching the session.
This was needed as we needed environment variables which previously we only knew after kwin started.
After some kwin refactoring this is no longer the case, and kwin_wayland_wrapper will sync it's environment variables to the appropriate startup environments.
This allows us to move starting kwin_wayland to be systemd managed, brining resource control, alongside it's classic counterpart plasma-session.
WIP due to the fixme's listed in plamsa-session which require some cleanup elsewhere, uploading now to show the end direction.
and because it requires the an as-yet unmerged kwin patch
- booted in the systemd boot, ensured the boot was not degraded (i.e kcminit and ksmserver managed to start)
- booted without the systemd boot, ensured we had everything
Refix wayland restarting (wayland restarts, so Xwayland ends, ksmserver ends, but now ksmserver closing is considered the end of "plasma-session" so we restart. Whereas before we relaunched it manually.
Sort out setFontDPI on wayland (this only affects the font used by xwayland apps, and the saving was broken till recently anyway: Options are !1012 (merged) or just throwing that line of code in the bin)
Fix ksplash with the systemd boot. Big task is config parsing to say if ksplash is enabled and which theme to then use is done by startplasma. We do have X-KDE-Autostart-Condition but that currently only takes a boolean (the systemd boot isn't enabled by default so it could be done later? or we could just deliberately leave it out and phase out ksplash?)