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.
This commit is contained in:
Alberto Sottile 2020-10-22 17:34:09 +02:00
parent eb970ea045
commit 03f5eaf31d

View File

@ -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]))