Bug 479347

Summary: Allow setting notification sounds on a per-application basis for apps that don't use per-event notification settings
Product: [Plasma] plasmashell Reporter: Naxdy <xnaxdy>
Component: NotificationsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: kde, kurobac, luisbocanegra17b, madness742, nate
Priority: NOR    
Version First Reported In: 5.27.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Naxdy 2024-01-03 09:43:58 UTC
SUMMARY
Currently, it is only possible to customize notification sounds for applications that correctly export all of their individual notification events (essentially only KDE apps). For other apps, there are still "some" settings that can be customized, but these are limited to where and how notifications appear.

The problem is, many third-party apps do not properly respect KDE's "do not disturb" mode, which results in these apps still playing their own notification sound (which goes against the idea of DND), but no popup showing up. A possible workaround here would be to disable notification sounds in these apps altogether, and set a new custom notification sound in system settings (which would then be properly disabled upon entering DND mode), but for this the functionality is currently lacking.

Therefore, I propose to add the ability to "add" a notification sound to any app's notifications, even if that app does not export its notifications in detail. Without any other change, this would result in the app's own notification sound and the custom one playing at the same time, so of course the idea here would be to disable the app's own sound in its settings first.

I'd have a look at implementing this myself as well, but wanted to gather some feedback first if this is something that might be considered for upstreaming.
Comment 1 Nate Graham 2024-02-16 18:15:05 UTC
It would have to affect all notifications of the so-customized apps, not just specific ones, But it seems doable.
Comment 2 Naxdy 2024-03-10 18:18:56 UTC
Yeah, that's the idea. Cool, I'll have a look whenever I have the time!