Bug 479347 - Allow setting notification sounds on a per-application basis for apps that don't use per-event notification settings
Summary: Allow setting notification sounds on a per-application basis for apps that do...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.27.4
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-03 09:43 UTC by Naxdy
Modified: 2024-12-29 06:36 UTC (History)
3 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 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!