-
Notifications
You must be signed in to change notification settings - Fork 595
anki: program fails to open because it requires mpv #6544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Anki relies on mpv and mplayer for playing audio and video files. If mpv is present in the system but not allowed in firejail then Anki fails to start because mpv permissions won't allow for execution. Fixes netblue30#6544.
Anki relies on mpv and mplayer for playing audio and video files. If mpv is present in the system but not allowed in firejail then Anki fails to start because mpv permissions won't allow for execution. Fixes netblue30#6544.
BTW the fix at #6545 is only the minimum to allow anki to start, but it still fails to record or play media. To fix the latter this is needed in
@kmk3 Should this be in the main |
I'm not familiar with anki, but if playing/recording media is a common use case By the way, does it use mpv to play just sound or also videos? |
It depends on the user, some will use media and others only text. But those expecting media to just work might be puzzled, as there is no error message in the UI when it fails to play, although there is one when it fails to record ('no microphone found"). I will add to the PR to enable these by default, with a comment on how to disable in
Both. |
Without this change, Anki fails to start. Fixes netblue30#6544.
Description
Running anki with firejail breaks because it requires mpv.
Notice that anki is missing in
firecfg.config
.Steps to Reproduce
firejail anki
Expected behavior
Anki UI opens and it works.
Actual behavior
Error window.
Behavior without a profile
It works.
Additional context
This error probably only happens when mpv is installed.
Environment
uname -srm
): Linux 6.11.6-arch1-1 x86_64firejail --version
): 0.9.72Checklist
/usr/bin/vlc
) "fixes" it).https://github.com/netblue30/firejail/issues/1139
)Log
Output of
LC_ALL=C firejail /usr/bin/anki
Gist to debug log
The text was updated successfully, but these errors were encountered: