Handle x11 and wayland
Open, Needs TriagePublic

Description

the order is different
the kwin service is different

gnome use templated unit files to resolve this
i.e gnome-session@x11 and gnome-session@wayland

it seems quite clever.

anything depending on kwin probably should probably be changed to require the aliased "window-manager.service"

Related Objects

davidedmundson added a comment.EditedApr 20 2020, 8:53 AM

Current state:

Things work, but aren't technically correct.

startplasmacompositor launches kwin_wayland
that launches startplasma_wayland which requests the session over systemd.

Ideally we want kwin to be a unit still on wayland, but we need everything the environment variables kwin_wayland sets up when it does it's --exit-with-session line....still needs some refactoring and planning.

Some progress:

We now have two targets

plasma-workspace@x11
and plasma-workspace@wayland

these call

plasma-core@x11
and plasma-core@wayland respectively

then we can request plasma-kwin_%i as a dependency

Ideally in systemd mode, startplasmacompostior will start the relevant target and then sit there waiting. Then we'll have it in the units that everything comes After=kwin_wayland.service, and somehow make kwin report that it's ready at the point where it currently does the --exit-with-session line.

bam added a subscriber: bam.Apr 20 2020, 1:08 PM