Bug 2571718

Summary: kde-settings: exitkde Action=Sound adds a fixed ~5 s delay to every Plasma logout/shutdown/reboot
Product: [Fedora] Fedora Reporter: Yevhen Sidey <uotton>
Component: kde-settingsAssignee: Neal Gompa <ngompa13>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 44CC: corrigo, jgrulich, kde-sig, ngompa13, than
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yevhen Sidey 2026-11-11 14:16:12 UTC
kde-settings-44.0-1.fc44 ships `/usr/share/kde-settings/kde-profile/default/xdg/plasma_workspace.notifyrc` with:

    [Event/exitkde]
    Action=Sound

Upstream plasma-workspace ships this event with `Action=` (empty).

With `Action=Sound`, ksmserver (plasma-workspace-6.8.2) waits for the `exitkde` KNotification to close before it completes logout. kf6-knotifications-6.31 never emits `closed()` for a notification that has Sound but no Popup (upstream: https://bugs.kde.org/show_bug.cgi?id=528695). So every logout, shutdown and reboot waits ksmserver's 5 s fallback timer. The result is the same whether the sound plays or fails.

Steps to reproduce:
1. Fedora 44 KDE Plasma, default settings.
2. Shut down or reboot from the Plasma menu.
3. `journalctl -b -1 -o short-precise | grep -E "Started dbus-:1.2-org.kde.Shutdown|Stopped target plasma-workspace-wayland"`

Actual: ~5 s between the two lines (measured 4.77–5.35 s over 6 shutdowns).
Expected: < 0.1 s. That is what you get after adding `[Event/exitkde] Action=None` to `~/.config/plasma_workspace.notifyrc` (measured 0.05 s).

Suggested fix: drop the `exitkde` override from kde-settings, so the upstream empty `Action=` applies, until the KNotifications bug is fixed. The `startkde` override does not cause a delay, because nothing waits for it.

Comment 1 corrigo 2026-11-19 11:22:13 UTC
I can confirm that the workaround suggested in this report successfully fixes the issue on my system.

System configuration:
- Fedora 44 KDE
- Plasma Workspace 6.8.3
- KNotifications 6.32.0
- kde-settings 44.0

I was experiencing the exact same behaviour: a consistent 5-second delay between clicking "Shut Down" and the actual beginning of the shutdown process. During this delay, the desktop remained fully responsive.

The system configuration contained the following entry:

[Event/exitkde]
Action=Sound

I applied the proposed workaround by creating a user-level override using this command:

kwriteconfig6 --file plasma_workspace.notifyrc --group Event/exitkde --key Action None

This created ~/.config/plasma_workspace.notifyrc with the following content:

[Event/exitkde]
Action=None

Result: The 5-second delay completely disappeared. Shutdown now starts almost immediately after clicking the button.

I can confirm that this workaround works on Fedora 44 with the versions listed above.

Thank you for investigating this issue!