Resolve how to log out properly
Closed, ResolvedPublic

Description

The code in eliasp's first efforts were a bit of a hack with a polling timer

Ideally we want everything to have a

BindsTo= and then some target

but I'm not sure of the details.

Gnome's way of handling logout is equally horrific

davidedmundson added a comment.EditedFeb 24 2020, 12:41 PM

A proposed initial plan:

We mod the non systemd case as follows:

  • we split plasma-session into plasma-session-startup and plasma-session-shutdown (from startup.cpp and shutddown.cpp respectively)
  • startplasma will spawn plasma-session, which will quit after it's done launching everything
  • plasma-session-shutdown becomes DBus activated on org.kde.shutdown
  • instead of waiting for plasma-session to exit, instead plasma-session waits for BOTH org.kde.ksmserver and org.kde.shtudown DBus services to not be registered.

This saves a few Mb memory, means shutdown.cpp is re-usable for the systemd case, and should also work (even if non ideally) for the systemd case.

davidedmundson closed this task as Resolved.Feb 26 2020, 1:11 PM
davidedmundson claimed this task.

Done!

It might need some tweaks regarding BindsTo everywhere

but that can be individual bug reports