https://bugs.kde.org/show_bug.cgi?id=448492

David Edmundson <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-workspace/commit/ |ma/plasma-workspace/commit/
                   |39ecc45e5bdf8cf167b7b128e2c |022a91662541fd32e54cbfec371
                   |3473069bd5119               |f08368f878fcf

--- Comment #10 from David Edmundson <[email protected]> ---
Git commit 022a91662541fd32e54cbfec371f08368f878fcf by David Edmundson.
Committed on 26/01/2022 at 22:40.
Pushed by davidedmundson into branch 'Plasma/5.24'.

[systemd] Fix logout issues

It is important that we end plasma-core.target plasma-workspace.target
and graphical-session.target when we log out. graphical-session in turn
closes all other apps and daemons and prevents restarts.
Handling it in systemd gives the least racey option.

graphical-session used to be hanlded in the plasma-ksmserver service
file, but this was removed in 5.24 in a refactor where it caused issues
for Xwayland restarting.

This patch reintroduces the sentinel programs to close down our target,
which in turn take down the other targets. It also removes a complicated
use of templates that in hindsight didn't really solve anything.

Testing done:
- logout of wayland shows all targets as inactive, logging in
repeatedly works smoothly
 - logout of X11 behaves the same.
- calling systemctl --user stop plasma-kwin_wayland.service closes the
session
 - killing ksmserver on wayland does not close the session
 - killing ksmserver on X does

(cherry picked from commit 39ecc45e5bdf8cf167b7b128e2c3473069bd5119)

M  +2    -2    startkde/startplasma.cpp
M  +4    -2    startkde/systemd/CMakeLists.txt
M  +1    -0    startkde/systemd/plasma-core.target
A  +4    -0    startkde/systemd/plasma-workspace-wayland.target
A  +4    -0    startkde/systemd/plasma-workspace-x11.target
A  +8    -0    startkde/systemd/plasma-workspace.target
D  +0    -6    startkde/systemd/[email protected]

https://invent.kde.org/plasma/plasma-workspace/commit/022a91662541fd32e54cbfec371f08368f878fcf

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to