https://bugs.kde.org/show_bug.cgi?id=525911
Bug ID: 525911
Summary: plasma-shutdown: KWin failed to complete logout
Classification: Plasma
Product: kwin
Version First unspecified
Reported In:
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
## Summary
When using Discover's **"Reboot after update"** functionality on Fedora 44 with
KDE Plasma 6.7.5, the applications are closed, but the Plasma session does not
actually log out and the system therefore does not reboot.
The user is left at the normal Plasma desktop with no application windows open.
`plasma-shutdown` is started through D-Bus and reports:
```text
KWin failed to complete logout
```
After this, `plasma-shutdown` exits, but the Plasma desktop remains active.
## Environment
* Fedora Linux 44
* KDE Plasma 6.7.5
* KWin 6.7.5
* Wayland
* Qt 6.11.2
* Kernel 7.2.5-200.fc44.x86_64
* AMD Radeon RX 9070 XT
* Mesa 26.2.2
* Display: Alienware AW3423DWF, 3440x1440 @ 164.9 Hz
* Adaptive Sync: Automatic
Relevant packages:
```text
plasma-workspace-6.7.5-1.fc44.x86_64
plasma-discover-6.7.5-1.fc44.x86_64
plasma-discover-offline-updates-6.7.5-1.fc44.x86_64
kwin-6.7.5-1.fc44.x86_64
kwin-common-6.7.5-1.fc44.x86_64
kwin-libs-6.7.5-1.fc44.x86_64
```
## Steps to reproduce
1. Boot into a KDE Plasma Wayland session.
2. Have a system update available in Discover.
3. In Discover, install the update and select **"Reboot after update"**.
4. The applications/windows close.
5. Wait for the reboot.
## Actual result
The applications close, but the Plasma session **does not log out**.
The user remains at the normal Plasma desktop with no application windows open.
The computer does not reboot.
The following was recorded immediately after the failure:
```text
[40195.667852] fedora systemd[1510]: Started
dbus-:[email protected].
[40198.140498] fedora steam[547480]: [2026-09-18 18:52:05] Shutdown
[40200.509158] fedora plasma-shutdown[654652]: KWin failed to complete logout
```
At that point:
```text
$ pgrep -a plasma-shutdown
```
returned no process.
The D-Bus services were back to their activatable state:
```text
org.kde.LogoutPrompt - - - (activatable)
org.kde.Shutdown - - - (activatable)
```
## Expected result
After selecting **"Reboot after update"**, Discover should install the updates,
log out of the current Plasma session, and reboot the computer.
## Additional observation from an earlier occurrence
An earlier occurrence of the problem behaved slightly differently.
`plasma-shutdown` remained running for approximately 10 minutes:
```text
PID 605137 /usr/bin/plasma-shutdown
```
It was blocked in `ppoll()` rather than consuming CPU and remained responsive
to D-Bus.
It owned:
```text
org.kde.Shutdown
```
Calling:
```bash
busctl --user call org.kde.Shutdown /Shutdown \
org.kde.Shutdown logout
```
immediately caused the pending reboot to proceed.
During that occurrence, repeated `ksmserver-logout-greeter` activations
produced:
```text
org.kde.Shutdown D-Bus service is already registered; quitting
```
The relevant D-Bus service definitions are:
```text
/usr/share/dbus-1/services/org.kde.Shutdown.service
[D-BUS Service]
Name=org.kde.Shutdown
Exec=/usr/bin/plasma-shutdown
```
and:
```text
/usr/share/dbus-1/services/org.kde.LogoutPrompt.service
[D-BUS Service]
Name=org.kde.LogoutPrompt
Exec=/usr/libexec/ksmserver-logout-greeter
```
Both are provided by `plasma-workspace-6.7.5-1.fc44.x86_64`.
## Notes
The failure appears to occur during the transition from closing applications to
logging out of the Plasma session.
The latest reproduction does **not** leave `plasma-shutdown` running. Instead,
it exits after reporting:
```text
KWin failed to complete logout
```
while the Plasma desktop remains active.
An earlier occurrence left `plasma-shutdown` waiting indefinitely, and manually
invoking its D-Bus `logout` method allowed the reboot to proceed.
I am therefore unsure whether the root cause is in KWin, `plasma-shutdown`,
Plasma session management, or the D-Bus shutdown sequence.
I would love to help you with more information if you require so.
After the failure:
$ pgrep -a plasma-shutdown
(no output)
$ busctl --user list | grep -E 'org\.kde\.(Shutdown|Logout)'
org.kde.LogoutPrompt - - - (activatable) - - -
org.kde.Shutdown - - - (activatable) - - -
$ systemctl --user status 'dbus-:1.2-org.kde.Shutdown@*.service'
(no output)
--
You are receiving this mail because:
You are watching all bug changes.