Bug 484457 - KDE Qt5 app plays notification sound even when system sounds are disabled
Summary: KDE Qt5 app plays notification sound even when system sounds are disabled
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Audio in general (other bugs)
Version First Reported In: 6.0.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-25 15:06 UTC by Patrick Silva
Modified: 2025-03-11 15:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.