Bug 488643 - The freedesktop sounds option for the battery under "System sounds" displays the message "Failed to preview sound: File or data not found" Despite existing.
Summary: The freedesktop sounds option for the battery under "System sounds" displays ...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_soundtheme (show other bugs)
Version: 6.0.5
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-17 22:31 UTC by ambioid
Modified: 2024-06-17 23:06 UTC (History)
2 users (show)

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


Attachments
Image depicting mouse hovering over battery icon with the text in red box saying "Failed to preview sound: File or data not found" (258.66 KB, image/png)
2024-06-17 22:31 UTC, ambioid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ambioid 2024-06-17 22:31:42 UTC
Created attachment 170582 [details]
Image depicting mouse hovering over battery icon with the text in red box saying "Failed to preview sound: File or data not found"

SUMMARY
The freedesktop sounds option for the battery under "System sounds" displays the message "Failed to preview sound: File or data not found" Even though the sound does in fact exist.

STEPS TO REPRODUCE
1. Fresh KDE NEON install with latest updates
2. Navigate to system settings->colors and themes->system sounds. 
3. Under the Freedesktop option click sounds and it will display error message - "Failed to preview sound: File or data not found"
4. If you actually switch to freedesktop and plug in your device and then unplug, you will hear a distinct clicking sound effect indicating that this sound file actually exists.

OBSERVED RESULT
Error message when clicking the battery sound preview button

EXPECTED RESULT
No error message, as the sound files does in fact exist.

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

ADDITIONAL INFORMATION
Comment 1 ambioid 2024-06-17 22:33:33 UTC
oops forgot to fill in the following

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: KDE Neon 6.0
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION 
Wayland 
Laptop
Surface pro 7
Comment 2 ambioid 2024-06-17 22:34:55 UTC
To clarify for step 3 - I mean to click the "Battery caution" sound preview under the freedesktop sounds option.
Comment 3 fanzhuyifan 2024-06-17 23:00:02 UTC
The sound you hear is the power-plug and power-unplug sounds. battery-caution is a different sound that freedesktop does not provide.

See https://people.freedesktop.org/~mccann/dist/ for the actual upstream package.
Comment 4 ambioid 2024-06-17 23:06:09 UTC
Ahh I see, thank you for letting me know. I guess I wasted my time writing this report then :(