[GH-ISSUE #1175] Pulseaudio issue (no sound) when running Firefox in Firejail #806

Closed
opened 2026-05-05 06:52:40 -06:00 by gitea-mirror · 13 comments
Owner

Originally created by @ghost on GitHub (Mar 29, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1175

As the title said. I already tried without success those documented fixes:

https://firejail.wordpress.com/support/known-problems/#pulseaudio

I also try to upgrade to the latest version of Firejail (0.9.44.10) with no different results.

...and yes, the sound is working (and I do not have the pulseaudio dialog box) if I start Firefox without firejail.

Additional information:

My pulseaudio version: 9.0

Any suggestions? Thank you!

Originally created by @ghost on GitHub (Mar 29, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1175 As the title said. I already tried without success those documented fixes: https://firejail.wordpress.com/support/known-problems/#pulseaudio I also try to upgrade to the latest version of Firejail (0.9.44.10) with no different results. ...and yes, the sound is working (and I do not have the pulseaudio dialog box) if I start Firefox without firejail. Additional information: My pulseaudio version: 9.0 Any suggestions? Thank you!
gitea-mirror 2026-05-05 06:52:40 -06:00
Author
Owner

@chiraag-nataraj commented on GitHub (Mar 29, 2017):

What pulseaudio dialog box are you talking about? One thing you can try is using firejail --ignore=<something> or commenting out everything from the firefox profile and slowly uncommenting stuff until you find the offending line.

<!-- gh-comment-id:290191654 --> @chiraag-nataraj commented on GitHub (Mar 29, 2017): What pulseaudio dialog box are you talking about? One thing you can try is using `firejail --ignore=<something>` or commenting out everything from the firefox profile and slowly uncommenting stuff until you find the offending line.
Author
Owner

@ghost commented on GitHub (Mar 29, 2017):

What pulseaudio dialog box are you talking about?

The one in Firefox when it cannot detect a pulseaudio installation (because of the jail in my case):

https://lut.im/w8qbLWHcHy/GaxukY03tA43GCU0.png

commenting out everything from the firefox profile and slowly uncommenting stuff until you find the offending line.

I tried that and I have the issue even when all the options are commented out...

I'm really out of ideas on this issue.

<!-- gh-comment-id:290258572 --> @ghost commented on GitHub (Mar 29, 2017): >What pulseaudio dialog box are you talking about? The one in Firefox when it cannot detect a pulseaudio installation (because of the jail in my case): https://lut.im/w8qbLWHcHy/GaxukY03tA43GCU0.png > commenting out everything from the firefox profile and slowly uncommenting stuff until you find the offending line. I tried that and I have the issue even when all the options are commented out... I'm really out of ideas on this issue.
Author
Owner

@chiraag-nataraj commented on GitHub (Mar 29, 2017):

Huh...I've literally never had that issue. Let's start with the basics: does firejail --noprofile firefox work? If so, let's create a new firejail profile in ~/.config/firejail/firefox.profile where we can start adding options. Start with seccomp and caps.drop all and let's work from there.

<!-- gh-comment-id:290259376 --> @chiraag-nataraj commented on GitHub (Mar 29, 2017): Huh...I've literally never had that issue. Let's start with the basics: does `firejail --noprofile firefox` work? If so, let's create a new `firejail` profile in `~/.config/firejail/firefox.profile` where we can start adding options. Start with `seccomp` and `caps.drop all` and let's work from there.
Author
Owner

@ghost commented on GitHub (Mar 29, 2017):

Let's start with the basics: does firejail --noprofile firefox work?

Nope and the sound is working perfectly if I start firefox in the terminal with just 'firefox'

<!-- gh-comment-id:290261226 --> @ghost commented on GitHub (Mar 29, 2017): >Let's start with the basics: does firejail --noprofile firefox work? Nope and the sound is working perfectly if I start firefox in the terminal with just 'firefox'
Author
Owner

@ghost commented on GitHub (Mar 29, 2017):

Here's the error message I get multiple times in the terminal with 'firejail --noprofile firefox'

Client failed to connect to the D-BUS daemon: Failed to connect to socket /run/user/1000/bus

<!-- gh-comment-id:290262077 --> @ghost commented on GitHub (Mar 29, 2017): Here's the error message I get multiple times in the terminal with 'firejail --noprofile firefox' Client failed to connect to the D-BUS daemon: Failed to connect to socket /run/user/1000/bus
Author
Owner

@chiraag-nataraj commented on GitHub (Mar 30, 2017):

Nope and the sound is working perfectly if I start firefox in the terminal with just 'firefox'

Huh, interesting. Which version of firefox?

Client failed to connect to the D-BUS daemon: Failed to connect to socket /run/user/1000/bus

Shouldn't really matter (I don't think it has anything to do with the pulseaudio issue).

<!-- gh-comment-id:290262990 --> @chiraag-nataraj commented on GitHub (Mar 30, 2017): > Nope and the sound is working perfectly if I start firefox in the terminal with just 'firefox' Huh, interesting. Which version of firefox? > Client failed to connect to the D-BUS daemon: Failed to connect to socket /run/user/1000/bus Shouldn't really matter (I don't think it has anything to do with the pulseaudio issue).
Author
Owner

@ghost commented on GitHub (Mar 30, 2017):

Which version of firefox?

52.0.1 (64-bit)

<!-- gh-comment-id:290263614 --> @ghost commented on GitHub (Mar 30, 2017): >Which version of firefox? 52.0.1 (64-bit)
Author
Owner

@chiraag-nataraj commented on GitHub (Mar 30, 2017):

Hmm...I used to be on that version with no issues. Which distro?

<!-- gh-comment-id:290264132 --> @chiraag-nataraj commented on GitHub (Mar 30, 2017): Hmm...I used to be on that version with no issues. Which distro?
Author
Owner

@ghost commented on GitHub (Mar 30, 2017):

OK, I just found my problem. I remember that I was also having a apparmor profile enabled for Firefox. I disable it and tried 'firejail --noprofile firefox' again...and it worked.

The thing is before Firefox 52, I could get sound in Firefox even if I was using both Firejail and Apparmor. Apparmor was "connecting" to pulseaudio and Firefox in Firejail was using ALSA. So the sound was working for me with the 2 active sandboxes. However, Firefox stopped supporting ALSA in version 52 and that's when my sound problem began...Yeah I should have thought of this sooner. Sorry and thanks for the help!

<!-- gh-comment-id:290267189 --> @ghost commented on GitHub (Mar 30, 2017): OK, I just found my problem. I remember that I was also having a apparmor profile enabled for Firefox. I disable it and tried 'firejail --noprofile firefox' again...and it worked. The thing is before Firefox 52, I could get sound in Firefox even if I was using both Firejail and Apparmor. Apparmor was "connecting" to pulseaudio and Firefox in Firejail was using ALSA. So the sound was working for me with the 2 active sandboxes. However, Firefox stopped supporting ALSA in version 52 and that's when my sound problem began...Yeah I should have thought of this sooner. Sorry and thanks for the help!
Author
Owner

@Fred-Barclay commented on GitHub (Mar 30, 2017):

@BytesTuner With the apparmor profile disabled, does firejail firefox have audio?

<!-- gh-comment-id:290273614 --> @Fred-Barclay commented on GitHub (Mar 30, 2017): @BytesTuner With the apparmor profile disabled, does `firejail firefox` have audio?
Author
Owner

@ghost commented on GitHub (Mar 30, 2017):

Yes. Now with Firefox 52, I will have to choose between using Firejail or apparmor. I cannot use both at the same time anymore if I want sound from the browser.

<!-- gh-comment-id:290274502 --> @ghost commented on GitHub (Mar 30, 2017): Yes. Now with Firefox 52, I will have to choose between using Firejail or apparmor. I cannot use both at the same time anymore if I want sound from the browser.
Author
Owner

@chiraag-nataraj commented on GitHub (Mar 30, 2017):

Huh...interesting. Glad to see you sorted it out!

<!-- gh-comment-id:290282456 --> @chiraag-nataraj commented on GitHub (Mar 30, 2017): Huh...interesting. Glad to see you sorted it out!
Author
Owner

@Hocuri commented on GitHub (Sep 18, 2017):

It is very easy to solve this issue. You just need to add a line
/run/firejail/mnt/pulse/client.conf r,
to /etc/apparmor.d/local/usr.bin.chromium-browser.

Does somebody have an idea how to solve this for ALL users? (Most users will probably not search in GitHub issues if they have a problem with PulseAudio).
What about what I proposed here: https://github.com/netblue30/firejail/issues/1487#issuecomment-328508519

(It is so easy to solve this, in my opinion it CAN'T be that it remains unsolved for 90 % of the users)

<!-- gh-comment-id:330214760 --> @Hocuri commented on GitHub (Sep 18, 2017): It is very easy to solve this issue. You just need to add a line `/run/firejail/mnt/pulse/client.conf r,` to /etc/apparmor.d/local/usr.bin.chromium-browser. Does somebody have an idea how to solve this for ALL users? (Most users will probably not search in GitHub issues if they have a problem with PulseAudio). What about what I proposed here: https://github.com/netblue30/firejail/issues/1487#issuecomment-328508519 (It is so easy to solve this, in my opinion it CAN'T be that it remains unsolved for 90 % of the users)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#806
No description provided.