Bug 418686 - no sounds from Skrooge flatpak app
Summary: no sounds from Skrooge flatpak app
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (other bugs)
Version First Reported In: Trunk from git
Platform: Flatpak Linux
: NOR minor
Target Milestone: 25.1.0
Assignee: skierpage
URL:
Keywords:
Depends on: 409300
Blocks:
  Show dependency treegraph
 
Reported: 2020-03-10 02:48 UTC by skierpage
Modified: 2025-10-20 20:00 UTC (History)
1 user (show)

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 2020-03-10 02:48:30 UTC
SUMMARY
When I ran the skrooge flatpak in 2019-06, the console showed 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
3a Click Accounts, create an account (choose any bank icon, enter Account "test" and Number "1234" and click [+ Add]).
3b Open Settings > Notifications, choose a notification,  and click the [▶] play button.

OBSERVED RESULT
The following appeared at startup in the terminal:
  ##WARNING: Audio notification requested, but sound file from notifyrc file was not found, aborting audio notification
And when I performed 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 showed 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/ , supplied by the oxygen-sound-theme package, so maybe that package should be part of the KDE Platform runtime the same way the Oxygen icons and the share/sounds/freedesktop/stereo/ files are; I filed bug 409300 against the Qt/KDE Flatpak Runtime project, from which I "forked" this bug against Skrooge.

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 retried this in 2020 recently with newer Flatpak 1.4.4 and runtimes, and came up with a workaround. If I 
a) copy these four Oxygen-Sys-App-* sound files either to the Skrooge flatpak app's data directory $HOME/.var/app/org.kde.skrooge/data/sounds/ or to the KDE Platform runtime directory /var/lib/flatpak/runtime/org.kde.Platform/x86_64/5.12/active/files/share/sounds
b) start Skrooge nightly with `flatpak run --socket=pulseaudio org.kde.skrooge`

then I hear sounds! If I only do a) skrooge prints
  AL lib: (EE) ALCplaybackOSS_open: Could not open /dev/dsp: No such file or directory
in the console.

To fix b) add
      "--socket=pulseaudio",
to "finish-args" in org.kde.skrooge.json. (FWIW this is already in Flathub's "recipe" https://github.com/flathub/org.kde.skrooge/blob/master/org.kde.skrooge.json .)

While waiting for some resolution to bug 409300 perhaps Skrooge could fix a) by incorporating these sound files somewhere in its flatpak build.
Comment 1 skierpage 2020-03-10 03:02:26 UTC
(In reply to skierpage from comment #0)
> To fix b) add
>       "--socket=pulseaudio",
> to "finish-args" in org.kde.skrooge.json.

I created Differential revision https://phabricator.kde.org/D27962 , note it doesn't address the missing sound files (part a).
Comment 2 Stephane MANKOWSKI 2020-03-15 18:24:38 UTC
Git commit f835b16d08068ee055857922637a55a396755e24 by Stephane MANKOWSKI.
Committed on 15/03/2020 at 18:24.
Pushed by smankowski into branch 'master'.

no sounds from Skrooge flatpak app

M  +1    -0    CHANGELOG
M  +2    -1    org.kde.skrooge.json

https://commits.kde.org/skrooge/f835b16d08068ee055857922637a55a396755e24
Comment 3 Stephane MANKOWSKI 2020-03-15 18:25:41 UTC
I think that Skrooge should not incorporate KDE files, so I fixed only the a).
Comment 4 skierpage 2022-06-16 00:46:13 UTC
(In reply to Stephane MANKOWSKI from comment #3)
> I think that Skrooge should not incorporate KDE files, so I fixed only the a).

OK, but the Flatpak has been broken for 2 years because there's no progress on bug 409300.
Comment 5 skierpage 2025-09-14 21:12:05 UTC
(In reply to skierpage from comment #4)
> the Flatpak has been broken for 2 years because there's no progress on bug 409300.
The new default Ocean theme sounds are still missing from the org.kde.Platform//6.9 runtime :-( . This seems an easy bug to fix.

After merge request !27 "Make it compatible with the Sound Naming spec", the skrooge.notifyrc in nightly skrooge//master flatpak now references
    Sound=dialog-error    # and outcome-failure, dialog-information, and outcome-success
instead of Oxygen-Sys-App-*.og . Somehow the my old workaround of copying `Oxygen-Sys-App-*.ogg` sounds into `~/.var/app/org.kde.skrooge/data/sounds/` still works.

To hear sounds from the Ocean theme in the nightly skrooge flatpak, the workaround is now 
  1. create the directory `~/.var/app/org.kde.skrooge/data/sounds` if it doesn't exist
  2. copy the new sound files dialog-error.oga, outcome-failure.oga, dialog-information.oga,and outcome-success.oga into it.

You can get the files from https://invent.kde.org/plasma/ocean-sound-theme/-/tree/master/ocean/stereo , or in the Fedora KDE packages at least the files are in /usr/share/sounds/ocean/stereo/
Comment 6 Stephane MANKOWSKI 2025-09-30 20:33:57 UTC
(In reply to skierpage from comment #5)
> (In reply to skierpage from comment #4)
> > the Flatpak has been broken for 2 years because there's no progress on bug 409300.
> The new default Ocean theme sounds are still missing from the
> org.kde.Platform//6.9 runtime :-( . This seems an easy bug to fix.
> 
> After merge request !27 "Make it compatible with the Sound Naming spec", the
> skrooge.notifyrc in nightly skrooge//master flatpak now references
>     Sound=dialog-error    # and outcome-failure, dialog-information, and
> outcome-success
> instead of Oxygen-Sys-App-*.og . Somehow the my old workaround of copying
> `Oxygen-Sys-App-*.ogg` sounds into `~/.var/app/org.kde.skrooge/data/sounds/`
> still works.
> 
> To hear sounds from the Ocean theme in the nightly skrooge flatpak, the
> workaround is now 
>   1. create the directory `~/.var/app/org.kde.skrooge/data/sounds` if it
> doesn't exist
>   2. copy the new sound files dialog-error.oga, outcome-failure.oga,
> dialog-information.oga,and outcome-success.oga into it.
> 
> You can get the files from
> https://invent.kde.org/plasma/ocean-sound-theme/-/tree/master/ocean/stereo ,
> or in the Fedora KDE packages at least the files are in
> /usr/share/sounds/ocean/stereo/

Hi,
I'm not as familiar with Flatpak as you are.
I don't know what to do to fix this issue.
Since you already contribute a lot to Skrooge, am I being too pushy if I ask you to take on this issue? ;-)
Regards.
Comment 7 skierpage 2025-10-20 07:56:52 UTC
(In reply to Stephane MANKOWSKI from comment #6)
> Since you already contribute a lot to Skrooge, am I being too pushy if I ask
> you to take on this issue? ;-)

Sure, I'm happy to. It should work now, but for some reason I don't get any app notification sounds, from the Flatpak, the Fedora RPM, or the simple alarm app KTeaTime. I think it's just me.