anki: backport patch to fix mpv args

This commit is contained in:
ghost 2020-09-13 12:26:40 +00:00 committed by Érico Nogueira Rolim
parent eb13a8ac8c
commit 23b5f320ed
2 changed files with 30 additions and 2 deletions

View file

@ -0,0 +1,29 @@
--- ./anki/mpv.py
+++ ./anki/mpv.py
@@ -104,9 +104,9 @@
"""
self.argv = [self.executable]
self.argv += self.default_argv
- self.argv += ["--input-ipc-server", self._sock_filename]
+ self.argv += ["--input-ipc-server="+self._sock_filename]
if self.window_id is not None:
- self.argv += ["--wid", str(self.window_id)]
+ self.argv += ["--wid="+str(self.window_id)]
def _start_process(self):
"""Start the mpv process.
--- ./anki/sound.py
+++ ./anki/sound.py
@@ -123,10 +123,7 @@
def setMpvConfigBase(base):
mpvConfPath = os.path.join(base, "mpv.conf")
- MpvManager.default_argv += [
- "--no-config",
- "--include="+mpvConfPath,
- ]
+ MpvManager.default_argv += ["--include="+mpvConfPath]
mpvManager = None

View file

@ -1,8 +1,7 @@
# Template file for 'anki'
pkgname=anki
version=2.1.15
revision=3
archs=noarch
revision=4
build_style=gnu-makefile
depends="python3-PyQt5-webengine python3-requests python3-SQLAlchemy
python3-PyAudio python3-mpv python3-Markdown python3-send2trash