mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2333] Weird issue with mpv and mpsyt #1556
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#1556
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 @chiraag-nataraj on GitHub (Jan 10, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2333
So I realized that
mpv, by default, does not control pulseaudio levels but instead controls its own internal volume level and I rebound9and0to controlao-volumeto fix this (in~/.config/mpv/input.conf). When I runmpvdirectly with my profile, everything works really well. So far so good. I do anln -s /usr/local/bin/firejail /usr/local/bin/mpvso it will be sandboxed by default.Now, I start using
mpsyt(mps-youtube) and create a profile for it. This one includes mympvprofile and whitelists a couple of additional things (namely,mpsytcomplains a lot if I don't enable DBus and I additionally whitelist the config file and binary). Here is where things get interesting. If I keep theignore nodbus,mpvreverts to its software mixing defaults for the keybindings. If I comment that line out,mpvcontrols the pulseaudio volume as I configured it butmpsytis semi-broken.Okay, fair enough. Not quite sure why, but let's play along. If that line is the issue, then
firejail --ignore=nodbus /usr/bin/mpv <file>(or addingignore nodbusto the profile file) should also revert to software mixing, right? Nope. That works just fine andmpvcontinues to control the pulseaudio volume.Does anyone know why on earth this should be the case? I've included the relevant profiles here.
common.inc
mpsyt.profile
mpv.profile
mpv-relaxed.inc
@chiraag-nataraj commented on GitHub (Jan 10, 2019):
Never mind, this was an issue discussed here: https://github.com/mps-youtube/mps-youtube/wiki/Troubleshooting