mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
profiles: anki: allow lua
Anki uses mpv to play media, which requires the lua interpreter.
Without this, anki displays this error in the console and falls back to
mplayer:
mpv: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: Permission denied
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/aqt/sound.py", line 854, in setup_audio
mpvManager = MpvManager(base_folder, media_folder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/aqt/sound.py", line 408, in __init__
super().__init__(window_id=None, debug=False)
File "/usr/lib/python3.12/site-packages/aqt/mpv.py", line 442, in __init__
super().__init__(*args, **kwargs)
File "/usr/lib/python3.12/site-packages/aqt/mpv.py", line 104, in __init__
self._start_socket()
File "/usr/lib/python3.12/site-packages/aqt/mpv.py", line 194, in _start_socket
raise MPVProcessError("unable to start process")
aqt.mpv.MPVProcessError: unable to start process
mpv too old or failed to open, reverting to mplayer
This commit is contained in:
parent
3a03bcd513
commit
3ec523f110
1 changed files with 7 additions and 0 deletions
|
|
@ -6,11 +6,18 @@ include anki.local
|
|||
# Persistent global definitions
|
||||
include globals.local
|
||||
|
||||
# Add the following to anki.local if you don't need media playing/recording
|
||||
# (lua is needed by mpv):
|
||||
#ignore include allow-lua.inc
|
||||
|
||||
noblacklist ${DOCUMENTS}
|
||||
noblacklist ${HOME}/.config/mpv
|
||||
noblacklist ${HOME}/.local/share/Anki2
|
||||
noblacklist ${HOME}/.mplayer
|
||||
|
||||
# Allow lua (blacklisted by disable-interpreters.inc)
|
||||
include allow-lua.inc
|
||||
|
||||
# Allow python (blacklisted by disable-interpreters.inc)
|
||||
include allow-python2.inc
|
||||
include allow-python3.inc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue