mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1175] Pulseaudio issue (no sound) when running Firefox in Firejail #806
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#806
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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!
@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.@ghost commented on GitHub (Mar 29, 2017):
The one in Firefox when it cannot detect a pulseaudio installation (because of the jail in my case):
https://lut.im/w8qbLWHcHy/GaxukY03tA43GCU0.png
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.
@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 firefoxwork? If so, let's create a newfirejailprofile in~/.config/firejail/firefox.profilewhere we can start adding options. Start withseccompandcaps.drop alland let's work from there.@ghost commented on GitHub (Mar 29, 2017):
Nope and the sound is working perfectly if I start firefox in the terminal with just 'firefox'
@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
@chiraag-nataraj commented on GitHub (Mar 30, 2017):
Huh, interesting. Which version of firefox?
Shouldn't really matter (I don't think it has anything to do with the pulseaudio issue).
@ghost commented on GitHub (Mar 30, 2017):
52.0.1 (64-bit)
@chiraag-nataraj commented on GitHub (Mar 30, 2017):
Hmm...I used to be on that version with no issues. Which distro?
@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!
@Fred-Barclay commented on GitHub (Mar 30, 2017):
@BytesTuner With the apparmor profile disabled, does
firejail firefoxhave audio?@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.
@chiraag-nataraj commented on GitHub (Mar 30, 2017):
Huh...interesting. Glad to see you sorted it out!
@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)