mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3596] smplayer: cannot play video with mpv as backend on Arch #2256
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#2256
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 @bbhtt on GitHub (Aug 20, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3596
Bug and expected behavior
Open a video in SMPlayer with mpv as backend,
/us/local/bin/mpvfails to launch, video does not play.The process to run and to video to play.
No profile or disabling firejail
firejail --noprofile PROGRAMin a shell?Runs
whereis PROGRAM,firejail --list,stat $programpath)?Runs.
Steps to reproduce the behavior:
Others /usr/local/bin/mpvprovided it also has a symlink.Environment
lsb_release -a)firejail --version) exclusive or used git commit (git rev-parse HEAD)mpv,smplayer,mplayer
Observations:
Ubuntu firejail 0.9.62.4-2 with smplayer 20.6/mpv not affected, only on Arch I think.
private-binline causing the error in step 6.firejail --buildandstrace -e execve, readlink,accessproduces:pacmd,dbus-send,xsetetc. adding them toprivate-binalong with shell doesn't help. If you are running strace feed smplayer a video on terminal to reduce verbosity a bit.mplayer as a backend works fine with no changes to profiles.
The error is not about mpv or its profile: copy the command line arguments smplayer feeds to mpv with a few changes, run under firejail a video, works!
The softvol and the last flag needs to be removed, then feed it a video.
@rusty-snake commented on GitHub (Aug 25, 2020):
Can you try the lua stuff.
@bbhtt commented on GitHub (Aug 25, 2020):
I already tried that, see my first edit on OP, the lua error was inconsistent, sometimes smplayer + mpv said liblua wasn't found, sometimes it didn't... I'll try again.
@bbhtt commented on GitHub (Aug 25, 2020):
Didn't work added allow-lua.inc, whitelist /usr/share/lua,whitelist /usr/share/lua*,whitelist /usr/share/vulkan to smplayer. It's weird.
@rusty-snake commented on GitHub (Aug 25, 2020):
Have you tried /usr/share/vulkan?
@bbhtt commented on GitHub (Aug 25, 2020):
Where?
@rusty-snake commented on GitHub (Aug 25, 2020):
In smplayer.local/profile.
@bbhtt commented on GitHub (Aug 25, 2020):
Yes I tried all three lua+vulkan. I don't use locals.
@rusty-snake commented on GitHub (Aug 25, 2020):
Works
firejail --profile=smplayer mpv --no-config --…?@bbhtt commented on GitHub (Aug 25, 2020):
You mean use smplayer profile to run
mpv? Yeah after including include allow-lua.inc, whitelist /usr/share/lua, whitelist /usr/share/lua*to smplayer.profile@rusty-snake commented on GitHub (Aug 25, 2020):
Yes, I want to know if the smplayer-profile breaks mpv (with the smplayer args) or if it is the interaction between smplayer and mpv.
@bbhtt commented on GitHub (Aug 25, 2020):
Ohh okay, the last command line argument has to be dropped and the softvol ones second last I think:
Doesn't work, mpv itself doesn't show above warnings when launched with its profile. So something in the args I think.
Profile:
https://termbin.com/i6eb
@rusty-snake commented on GitHub (Aug 25, 2020):
Can you try to find the problematic line.
@bbhtt commented on GitHub (Aug 25, 2020):
Doesn't work with the full smplayer.profile commented:
Profile: https://termbin.com/anb7
Even noprofile fails,weird, mpv works on its own though, under firejail without the args.
@bbhtt commented on GitHub (Aug 25, 2020):
So when I made Obsevation 5, it was working that way, now it doesn't, the only changes in this period were updating the kernel/system and installing multilib mesa,vulkan etc., the latter could be related to the change in observation now.
@rusty-snake commented on GitHub (Aug 25, 2020):
https://github.com/netblue30/firejail/issues/3596#issuecomment-679933912 this command works for me (other video path). I'm out of ideas.
@bbhtt commented on GitHub (Aug 25, 2020):
The faulty arg for the case in https://github.com/netblue30/firejail/issues/3596#issuecomment-679925970 was
--wid=75497517removing that and using the uncommented smplayer.profile under firejail, works for me. Even if I ignore that for the moment since it worked previously, and the softvol+last one, there's something to be added inprivate-binof smplayer+lua in smplayer to make it work with mpv as backend on Arch.