Bug 409300 - KDE Platform flatpak runtime is missing any theme's sounds
Summary: KDE Platform flatpak runtime is missing any theme's sounds
Status: RESOLVED FIXED
Alias: None
Product: Qt/KDE Flatpak Runtime
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks: 418686
  Show dependency treegraph
 
Reported: 2019-06-29 08:18 UTC by skierpage
Modified: 2025-09-19 01:57 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description skierpage 2019-06-29 08:18:58 UTC
SUMMARY
When I run the skrooge flatpak, the console shows a warning
  ##WARNING: Audio notification requested, but sound file from notifyrc file was not found, aborting audio notification
and there are no sounds.
Searching for "flatpak" and this warning message suggests that the marble and kdenlive flatpaks also don't play notification sounds, but I haven't reproduced this problem with them.

STEPS TO REPRODUCE
1. flatpak install org.kde.skrooge
2. flatpak run org.kde.skrooge
3. Click Accounts, create an account (choose any bank icon, enter Account "test" and Number "1234" and click [+ Add]). 

OBSERVED RESULT
The following appears at startup in the terminal:
  ##WARNING: Audio notification requested, but sound file from notifyrc file was not found, aborting audio notification
And when you perform operations that normally play a happy sound, there's no sound.

EXPECTED RESULT
No startup warning, and sounds.

skrooge.notifyrc specifies
  Sound=Oxygen-Sys-App-Error.ogg
  Sound=Oxygen-Sys-App-Negative.ogg
  Sound=Oxygen-Sys-App-Message.ogg
  Sound=Oxygen-Sys-App-Positive.ogg

strace shows the flatpak app tries to access these sounds from  
  $HOME/.var/app/org.kde.skrooge/data/sounds/
  /app/share/sounds/
  /usr/share/sounds/
  /run/host/share/sounds/
and they're not available in any location, hence the warning.

In Fedora, these files are in /usr/share/sounds/ . They are supplied by the oxygen-sound-theme package, 2 MB of files, so maybe that package should be part of the KDE runtime the same way /usr/share/sounds/freedesktop/stereo/ files are in the KDE runtime.


SOFTWARE/OS VERSIONS
flatpak version 1.4.1
Linux/KDE Plasma: 
(available in About System)
^ from `flatpak run --command='kdeinit5' org.kde.Platform --version`
KDE Plasma Version: n/a
KDE Frameworks Version: 5.12.4
Qt Version: 5.59.0

ADDITIONAL INFORMATION

I tried working around the problem by copying the four .ogg files mentioned in skrooge.notifyrc into /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/18.08/active/files/share/sounds but they didn't show up in the flatpak; I'm not sure how the "host" directories are mounted.

I then tried copying the sounds into $HOME/.var/app/org.kde.skrooge/data/sounds/ , which avoided the WARNING about sound file not found, but... I didn't hear any sound, even with `flatpak run --socket=pulseaudio org.kde.skrooge`. 

FWIW kdenlive.notifyrc references two of the same sound files, plus a fifth, Oxygen-Sys-Warning.ogg.
Comment 1 skierpage 2020-03-10 01:36:27 UTC
I've retitled this bug to make it about adding the Oxygen theme sounds to the KDE Platform flatpak runtime. The KDE Platform has other sounds in freedesktop/stereo and Oxygen icons in plasma/desktoptheme/oxygen , so (by set theory ;-) ) /var/lib/flatpak/runtime/org.kde.Platform/... should include the sounds from the oxygen.git repository as well.

(In reply to skierpage from comment #0)
> I then tried copying the sounds into
> $HOME/.var/app/org.kde.skrooge/data/sounds/ , which avoided the WARNING
> about sound file not found, but... I didn't hear any sound, even with
> `flatpak run --socket=pulseaudio org.kde.skrooge`. 
Sounds now play with Flatpak 1.4.4 if I do both those things; I'll file a separate bug for Skrooge. BTW another way to test sound in Skrooge is open Settings > Notifications, choose a notification,  and click the [▶] play button.
Comment 2 skierpage 2024-06-18 03:54:43 UTC
There are still no sounds in the KDE flatpak runtime. The new sound theme for Plasma 6 is ocean ( https://invent.kde.org/plasma/plasma-workspace/-/issues/40 ), so it seems /usr/share/sounds/ocean/ should be packaged in the KDE version 6.7 flatpak runtime.
Comment 3 skierpage 2025-09-14 21:19:13 UTC
ping?! Still no sounds in the org.kde.Platform//6.9 flatpak runtime. The .oga files in https://invent.kde.org/plasma/ocean-sound-theme/-/tree/master/ocean/stereo are but 2.3 MB.
Comment 4 Bug Janitor Service 2025-09-16 03:40:57 UTC
A possibly relevant merge request was started @ https://invent.kde.org/packaging/flatpak-kde-runtime/-/merge_requests/307
Comment 5 guimarcalsilva 2025-09-19 01:28:03 UTC
Git commit dcfb612dfe1842d14406ab46b3662e80dd410594 by Guilherme Marçal Silva.
Committed on 19/09/2025 at 01:27.
Pushed by raploz into branch 'qt6.9'.

Add ocean-sound-theme

I'm the maintainer of the Ocean sound theme, and it came to my attention that KDE Flatpak apps cannot play sounds from the theme because it's not included in the Flatpak KDE Runtime.

Even though I'm the maintainer of the sound theme, I'm not a developer, so I'm unsure if this is the right approach. Any help would be appreciated.

Looking through the file I noticed all things for Plasma are currently in version 6.3.4, so in the commit section I put `6f564989422976f51346d8273b827bf647adec52`, which points to the [commit made for version 6.3.4](https://invent.kde.org/plasma/ocean-sound-theme/-/commit/6f564989422976f51346d8273b827bf647adec52). I based this patch on the description for other Plasma components that were in the same file, but I'm unsure if anything else is necessary. I don't know how to test if this works and couldn't find any instructions, so please review carefully and let me know if there's anything I need to change.

Also, do I need to make another merge request for the 6.8 branch?

Thanks! @aacid 

M  +23   -0    org.kde.Sdk.json.in

https://invent.kde.org/packaging/flatpak-kde-runtime/-/commit/dcfb612dfe1842d14406ab46b3662e80dd410594
Comment 6 guimarcalsilva 2025-09-19 01:57:05 UTC
Git commit 105abc726e4961507c8a3250e011ec7c62a99f0c by Guilherme Marçal Silva.
Committed on 19/09/2025 at 01:57.
Pushed by raploz into branch 'qt6.8'.

Add ocean-sound-theme

This adds the ocean-sound-theme to the Flatpak Runtime, that way, Flatpak apps can use the sound theme.

(cherry picked from commit dcfb612dfe1842d14406ab46b3662e80dd410594)

fe0fab43 Add ocean-sound-theme
415a998b Update version
f30d05ee Switch to archive type

Co-authored-by: Guilherme Marçal Silva <guimarcalsilva@gmail.com>

M  +23   -0    org.kde.Sdk.json.in

https://invent.kde.org/packaging/flatpak-kde-runtime/-/commit/105abc726e4961507c8a3250e011ec7c62a99f0c