1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

TOOLS/umpv: don't wait for mpv after it is run

We just want to start mpv, there is no need to keep umpv script alive.
This commit is contained in:
Kacper Michajłow 2025-01-31 06:51:23 +01:00
parent b870d1933a
commit dfbd60f9bb

View File

@ -77,7 +77,7 @@ def start_mpv(files: Iterable[str], socket_path: str) -> None:
"--",
])
mpv_command.extend(files)
subprocess.check_call(mpv_command)
subprocess.Popen(mpv_command, start_new_session=True)
def main() -> None:
files = (os.path.abspath(f) if not is_url(f) else f for f in sys.argv[1:])