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

Nate Graham <n...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-workspace/-/commi |ma/plasma-workspace/-/commi
                   |t/41629e86035e341bb4dea6622 |t/b0c3c66fc04a7743c6c61d54e
                   |36aefdc274e7c30             |1d825349de5d8b6

--- Comment #5 from Nate Graham <n...@kde.org> ---
Git commit b0c3c66fc04a7743c6c61d54e1d825349de5d8b6 by Nate Graham, on behalf
of David Edmundson.
Committed on 25/03/2024 at 21:25.
Pushed by ngraham into branch 'Plasma/6.0'.

plasma-shutdown: Correclty detect if we're using the legacy session

We need different shutdown paths for the systemd and legacy boot. The
current code worked by making the systemd call to end the session and
checking the return status.

This worked for handling the situation where systemd is not installed.
It does not capture the case where the systemd boot is explicitly
disabled. The call successfully does nothing.

Instead replace with an explicit check that our target is activated.

Also change to end the plasma-workspace.target as that's semantically
more correct given it's the one we started. This is bound to the
graphical-session so it ends up being the same thing.


(cherry picked from commit 41629e86035e341bb4dea662236aefdc274e7c30)

M  +29   -6    startkde/plasma-shutdown/shutdown.cpp
M  +1    -0    startkde/plasma-shutdown/shutdown.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/b0c3c66fc04a7743c6c61d54e1d825349de5d8b6

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

Reply via email to