Skip to content

No sound from Flatpak apps, likely cannot find/access PulseAudio #878

Closed

Description

Linux from Scratch, 64bit

None of my Flatpak apps have sound, where as their normal counterparts do. I've been troubleshooting for the last few days, but haven't found anything which seems out of place, other than these standard error messages.

For an unofficial Firefox build: (Doesn't mention PA, just appears when I start an audio source)

fork(): Operation not permitted

And for every other application: (With some slight variation)

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

It's difficult to list anything out of the ordinary since I don't know the specifics of how Flatpaks work. Inside the namespace, if I run pacmd, it will tell me there is no running PA server, but this could be standard behavior.

When mounted, Flatpak does not seem to carry over any user groups, which the audio group is needed to play sound for standard applications. Again, I don't believe this is an issue, since the namespace does not contain /dev/snd/, so I assume it goes through Flatpak, in which case there would be no need to receive permissions from an audio group.

D-bus does not return any PulseAudio specific errors, but it did mention this:

the name org.gnome.SessionManager was not provided by any .service files

I do not have Systemd installed, and I believe I have satisfied all (essential) runtime dependencies. I have ensured PulseAudio is running (not as root or system-daemon) (also it should be started automatically even if it wasn't running), and every audio-required application has the PulseAudio socket enabled.

I don't know what else the check. My biggest thought would be that since I compiled Flatpak from source I would be missing a compilation option, which would explain why nobody else seems to have this issue/an issue similar.

Activity

  1. ghost closed this as completedon Jun 29, 2017
  2. TingPing commented on Jun 29, 2017

    @TingPing
    Member

    @ChrootDoot You don't need the portals for sound, that issue is over future plans to more securely implement it.

  3. ghost reopened this on Jul 1, 2017
  4. ghost closed this as completedon Jul 6, 2017
  5. chopfitzroy commented on Dec 19, 2018

    @chopfitzroy

    @ChrootDoot could you go a little more into detail as to how you fixed this, I have the same issue, but am having a little trouble understanding your solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions