Skip to content

Commit

Permalink
profiles: anki: allow mpv and mplayer
Browse files Browse the repository at this point in the history
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 #6544.
  • Loading branch information
Fidel Ramos authored and kmk3 committed Nov 12, 2024
1 parent d01e177 commit 1387aa4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion etc/profile-a-l/anki.profile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ include anki.local
include globals.local

noblacklist ${DOCUMENTS}
noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.local/share/Anki2
noblacklist ${HOME}/.mplayer

# Allow python (blacklisted by disable-interpreters.inc)
include allow-python2.inc
Expand All @@ -23,7 +25,9 @@ include disable-xdg.inc

mkdir ${HOME}/.local/share/Anki2
whitelist ${DOCUMENTS}
whitelist ${HOME}/.config/mpv
whitelist ${HOME}/.local/share/Anki2
whitelist ${HOME}/.mplayer
include whitelist-common.inc
include whitelist-var-common.inc

Expand All @@ -46,7 +50,7 @@ protocol unix,inet,inet6
seccomp !chroot

disable-mnt
private-bin anki,python*
private-bin anki,mplayer,mpv,python*
private-cache
private-dev
private-etc @tls-ca,@x11
Expand Down

0 comments on commit 1387aa4

Please sign in to comment.