DESCRIPTION The volume feedback sound (played by plasma-pa's VolumeFeedback on every volume change) plays the "audio-volume-change" sample from the freedesktop sound theme instead of the configured sound theme (Ocean, KDE's default). plasma-pa's VolumeFeedback::updateCachedSound() (executed once at kded startup) passes the theme via ca_context_cache(..., CA_PROP_CANBERRA_XDG_THEME_NAME, "ocean", ...), but VolumeFeedback::play() — executed on every volume change — calls ca_context_play() with only CA_PROP_EVENT_ID and CA_PROP_CANBERRA_CACHE_CONTROL, without the theme property. libcanberra therefore resolves the event at play time against its built-in default theme (freedesktop) instead of the configured one; the cache entry created at startup never matches the play-time property set. Verified by direct A/B playback of both theme files on the affected system: - paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga — plays exactly the sound the volume feedback produces. - paplay /usr/share/sounds/ocean/stereo/audio-volume-change.oga — plays the expected sound from the configured theme. STEPS TO REPRODUCE 1. Ensure the default sound theme is Ocean (no [Sounds] Theme entry in kdeglobals) and both ocean-sound-theme and sound-theme-freedesktop are installed. 2. Change the volume via the keyboard keys or the Audio Volume widget. 3. Compare the played sound with direct playback of both theme files: paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga paplay /usr/share/sounds/ocean/stereo/audio-volume-change.oga OBSERVED RESULT The feedback plays the freedesktop theme's sample. EXPECTED RESULT The feedback plays the sample from the configured sound theme (Ocean). SOFTWARE/OS VERSIONS Operating System: CachyOS Linux KDE Plasma Version: 6.7.5 KDE Frameworks Version: 6.30.0 Qt Version: 6.11.2 ADDITIONAL INFORMATION Workaround verified: placing the ocean sample at ~/.local/share/sounds/freedesktop/stereo/audio-volume-change.oga (XDG_DATA_HOME override honored by libcanberra) and restarting plasma-kded6.service makes the feedback play the ocean sample. This confirms that play-time resolution hits the freedesktop theme and honors XDG overrides. Suggested fix: pass CA_PROP_CANBERRA_XDG_THEME_NAME (from SoundThemeConfig::soundTheme()) in the ca_context_play() call as well.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-pa/-/merge_requests/435
Git commit 62508a19b186da688c134d5bd70bbb598692bb68 by Niccolò Venerandi. Committed on 22/10/2026 at 13:54. Pushed by niccolove into branch 'master'. volumefeedback: Play the sound from the configured sound theme updateCachedSound() passes CA_PROP_CANBERRA_XDG_THEME_NAME when it caches the sample, but play() does not. Whenever libcanberra resolves the event at play time, it looks it up in its built-in default theme and caches that file permanently instead. M +1 -0 src/volumefeedback.cpp https://invent.kde.org/plasma/plasma-pa/-/commit/62508a19b186da688c134d5bd70bbb598692bb68
Git commit 2474feed46c99242e3bd1a56ad87b61db14912c5 by Niccolò Venerandi. Committed on 22/10/2026 at 20:38. Pushed by niccolove into branch 'Plasma/6.8'. volumefeedback: Play the sound from the configured sound theme updateCachedSound() passes CA_PROP_CANBERRA_XDG_THEME_NAME when it caches the sample, but play() does not. Whenever libcanberra resolves the event at play time, it looks it up in its built-in default theme and caches that file permanently instead. (cherry picked from commit 62508a19b186da688c134d5bd70bbb598692bb68) Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com> M +1 -0 src/volumefeedback.cpp https://invent.kde.org/plasma/plasma-pa/-/commit/2474feed46c99242e3bd1a56ad87b61db14912c5