From 03f5eaf31d4d4d78a5b090d2e47f2ac45500823b Mon Sep 17 00:00:00 2001 From: Alberto Sottile Date: Thu, 22 Oct 2020 17:34:09 +0200 Subject: [PATCH] Fix running IINA from frozen app Apparently, `iina-cli` gets confused when launched from a frozen app and automatically adds `--stdin` to its passed launch arguments. But then, it waits for a file to be piped and, because there is none, the player crashes almost immediately. Sending `--no-stdin` to the process resolves the ambiguity and does not cause any harm if Syncplay is started from sources. --- syncplay/players/ipc_iina.py | 1 + 1 file changed, 1 insertion(+) diff --git a/syncplay/players/ipc_iina.py b/syncplay/players/ipc_iina.py index dda0b9c..55a9f85 100755 --- a/syncplay/players/ipc_iina.py +++ b/syncplay/players/ipc_iina.py @@ -48,6 +48,7 @@ class IINAProcess(MPVProcess): def _get_arglist(self, exec_location, **kwargs): args = [exec_location] + args.append('--no-stdin') args.append(resourcespath + 'iina-bkg.png') self._set_default(kwargs, "mpv-input-ipc-server", self.ipc_socket) args.extend("--{0}={1}".format(v[0].replace("_", "-"), self._mpv_fmt(v[1]))