Skip to content

Commit 3ec523f

Browse files
Fidel Ramoskmk3
Fidel Ramos
authored andcommitted
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
1 parent 3a03bcd commit 3ec523f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

etc/profile-a-l/anki.profile

+7
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@ include anki.local
66
# Persistent global definitions
77
include globals.local
88

9+
# Add the following to anki.local if you don't need media playing/recording
10+
# (lua is needed by mpv):
11+
#ignore include allow-lua.inc
12+
913
noblacklist ${DOCUMENTS}
1014
noblacklist ${HOME}/.config/mpv
1115
noblacklist ${HOME}/.local/share/Anki2
1216
noblacklist ${HOME}/.mplayer
1317

18+
# Allow lua (blacklisted by disable-interpreters.inc)
19+
include allow-lua.inc
20+
1421
# Allow python (blacklisted by disable-interpreters.inc)
1522
include allow-python2.inc
1623
include allow-python3.inc

0 commit comments

Comments
 (0)