Bug 484457

Summary: KDE Qt5 app plays notification sound even when system sounds are disabled
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: Audio in generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: isma.af, kdedev
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Patrick Silva 2024-03-25 15:06:50 UTC
STEPS TO REPRODUCE
1. make sure the system sounds are disabled in System Sounds KCM
2. open Kolourpaint
3. draw something
4. try to close Kolourpaint without saving the draw

OBSERVED RESULT
Kolourpaint prompts to save/discard the draw and plays a notification sound

EXPECTED RESULT
the notification sound should not play

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland


ADDITIONAL INFORMATION
Can also reproduce with K3b.
Comment 1 TraceyC 2025-03-10 21:23:31 UTC
Is this still an issue on an up to date system?
Comment 2 Ismael Asensio 2025-03-10 21:40:54 UTC
Unfortunately this is expected and not much that can be done about. 

Contrary what it may seem, it is the apps which play the notification sounds and not plasma. In the case of KDE apps, this is usually done via the KNotification frameworks. The setting property to disable notifications, along sound themes, was added on KNotifications for Frameworks KF6. So applications that still use KF5 don't know about this setting and cannot be affected by it.

The only configuration that can make the notification sounds not play for every app is muting the "System Notifications" channel in the "Audio" KCM, because that's done at the sound server level (pulseaudio/pipewire). That means, the sound is still "played", but will not be emitted because it is muted.
Comment 3 TraceyC 2025-03-11 15:24:14 UTC
Thanks for the explanation.
I'm going to go ahead and close this, since the system is working as designed.