From ccd715013609133c55e83924734efa78abc03326 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 21 Jan 2020 19:29:50 +1000 Subject: [PATCH] fix mpv args https://anki.tenderapp.com/discussions/ankidesktop/38186-mpvprocesserror-unable-to-start-process --- qt/aqt/mpv.py | 4 ++-- qt/aqt/sound.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qt/aqt/mpv.py b/qt/aqt/mpv.py index c70da9a59..d5a84c3fb 100644 --- a/qt/aqt/mpv.py +++ b/qt/aqt/mpv.py @@ -113,9 +113,9 @@ class MPVBase: """ 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. diff --git a/qt/aqt/sound.py b/qt/aqt/sound.py index 3d25f8f9f..c6a483749 100644 --- a/qt/aqt/sound.py +++ b/qt/aqt/sound.py @@ -283,7 +283,7 @@ class SimpleMpvPlayer(SimpleProcessPlayer, SoundOrVideoPlayer): def __init__(self, taskman: TaskManager, base_folder: str) -> None: super().__init__(taskman) conf_path = os.path.join(base_folder, "mpv.conf") - self.args += ["--no-config", "--include=" + conf_path] + self.args += ["--include=" + conf_path] class SimpleMplayerPlayer(SimpleProcessPlayer, SoundOrVideoPlayer):