Bug 485059 - Sound notifications only work for themed settings
Summary: Sound notifications only work for themed settings
Status: REPORTED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_notify (show other bugs)
Version: 6.0.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-05 05:01 UTC by Al Williams
Modified: 2024-04-05 05:01 UTC (History)
1 user (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 Al Williams 2024-04-05 05:01:35 UTC
SUMMARY
If you use an audio theme, setting any sound notifications directly silently fails.

STEPS TO REPRODUCE
1.  Select Ocean sound theme (not sure if that matters, but it is what I have)
2. Open up SystemSettings | Notifications | Configure
3. Pick an application that has a sound notification (even if it is not being used currently).
4. Ensure Play a Sound is selected
5. Use the folder to pick a sound outside the current theme directory (I took one out of the Oxygen theme so I know it was correctly encoded, etc.)
6. Press the play button to the left of the sound. Hear nothing. (Note that it puts a file:/// URL here but I guess that's OK -- changing it to a path has no effect).
7. In fact, pick a file in the ocean theme. No effect when pressing Play.
8. Find an item that is in the theme (e.g., Plasma Workspace |  Login) 
9. Note that the entry there is a single name (desktop-login)
10. Use the file picker to pick the very same file (now has file:/// in front of it).
11. No sound when pressing play
12. Press the revert button next to the file picker
13. Press play -- hear the sound.


OBSERVED RESULT
It appears to me (without looking at the code yet) that all notification sounds get passed to the theme who either interprets them as "token" or ignores them if it doesn't know what they are. So, in other words, because the theme doesn't provide a sound for AngelFish "website notification" there is no way to set a sound for that notification without editing the theme.

EXPECTED RESULT
You'd think you could override the theme, especially for things the theme doesn't provide. I get that the theme has to overwrite when it is installed but it seems like it should pass anything unknown to the file system.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  6.03
(available in About System)
KDE Plasma Version:  6.03
KDE Frameworks Version: 6.0.0 
Qt Version: 

ADDITIONAL INFORMATION