Skip to content

Drop KDisplayManager introduce newer API for SessionListing

David Edmundson requested to merge work/d_ed/sessionsmodel2 into master

KDisplayManager is the oldest code in Plasma. It has abstractions for things that haven't been active in over 20 years.

KDisplayManager's sole remaining job was handling of listing sessions and switching between them. This list of sessions was then wrapped in a SessionsModel for usage in screenlocker and the logout screen.

This patch keeps only the remaining active code for Logind and ConsoleKit and exposes them directly as a model with abstraction to handle both.

The code is synchronous to match the behaviour of existing clients, but by being a model we can change that in the future without affecting ABI.


It seems the current state is not great, which needs to be considered if testing this patch. SDDM with wayland has some issues that affect logind's tracking that's unrelated to this patch. I tested against LightDM to confirm that side of things.

Merge request reports