Bug 480626

Summary: No battery-caution sound.
Product: [Applications] systemsettings Reporter: gigastarcraft2
Component: kcm_soundthemeAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: isma.af, nate
Priority: NOR Keywords: qt6
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description gigastarcraft2 2024-01-31 20:33:06 UTC
STEPS TO REPRODUCE
1. Go to a System Settings -> Global Theme -> System Sounds.
2. Play battery-caution sound in Free Desktop theme.
3. Error.

OBSERVED RESULT
No sound.
EXPECTED RESULT
Sound as usual.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon Unstable
KDE Plasma Version: 6.0.8
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-02-01 20:39:32 UTC
It means that theme doesn't have that sound. In later beta released, we added a message about it.
Comment 2 Bug Janitor Service 2024-02-01 21:27:41 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3849
Comment 3 Ismael Asensio 2024-02-05 19:07:30 UTC
Git commit e3526dc7c5ec3f7c18ca67dddfb73f611186d460 by Ismael Asensio.
Committed on 05/02/2024 at 18:50.
Pushed by iasensio into branch 'master'.

kcms/soundtheme: Improve error message for sound not found

This error is the most common a user can experience in the KCM,
as it will happen if a theme doesn't provide one of the preview
sounds (ex. 'freedesktop' and sound 'batery-caution')

To minimize possible confusion for users (and bug reports), offer
a more clear and translated string on why it's happening, and
show it as an information message rather than an error.

M  +25   -11   kcms/soundtheme/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/e3526dc7c5ec3f7c18ca67dddfb73f611186d460