https://bugs.kde.org/show_bug.cgi?id=525911
Nate Graham <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit| |https://invent.kde.org/plas | |ma/plasma-workspace/-/commi | |t/05ad367e99af513e174c12968 | |d06a2f33f305c75 --- Comment #13 from Nate Graham <[email protected]> --- Git commit 05ad367e99af513e174c12968d06a2f33f305c75 by Nate Graham, on behalf of David Edmundson. Committed on 26/09/2026 at 00:30. Pushed by ngraham into branch 'Plasma/6.8'. plasma-shutdown: Guard against concurrent logout/reboot/shutdown requests A second, overlapping call to logout()/logoutAndShutdown()/logoutAndReboot() while one is already in progress starts a duplicate startLogout() flow in the same process. Both flows eventually call KWin's SessionManager::closeWaylandWindows(), which correctly rejects the second, overlapping call with "Operation already in progress". That rejection is currently treated as fatal: Shutdown::ksmServerComplete() reacts to it by calling resetLogout() and logoutCancelled(), which calls qApp->quit() and tears down the whole plasma-shutdown process - including the first, legitimate request that was still in flight and would very plausibly have completed successfully on its own. Reuse m_shutdownType itself to detect this instead of adding a new member: ShutdownTypeNone now consistently means idle, and logout() uses the previously-unused ShutdownTypeLogout instead of ShutdownTypeNone to avoid ambiguity between "plain logout in progress" and "idle". (cherry picked from commit e873611cb6757a20bd0c0218690f64c2515c3e28) Co-authored-by: Gregor Papez <[email protected]> M +8 -1 startkde/plasma-shutdown/shutdown.cpp M +2 -1 startkde/plasma-shutdown/shutdown.h https://invent.kde.org/plasma/plasma-workspace/-/commit/05ad367e99af513e174c12968d06a2f33f305c75 -- You are receiving this mail because: You are watching all bug changes.
