From c8a90001f237b8b0393638c7846000d0c3ee93b8 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 6 Jan 2023 19:49:17 +0100 Subject: [PATCH] TOOLS/umpv: support shell-quotes in $MPV --- TOOLS/umpv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TOOLS/umpv b/TOOLS/umpv index bffcfe0c48..1eece5d30b 100755 --- a/TOOLS/umpv +++ b/TOOLS/umpv @@ -32,6 +32,7 @@ import socket import errno import subprocess import string +import shlex files = sys.argv[1:] @@ -78,7 +79,7 @@ if sock: else: # Let mpv recreate socket if it doesn't already exist. - opts = (os.getenv("MPV") or "mpv").split() + opts = shlex.split(os.getenv("MPV") or "mpv") opts.extend(["--no-terminal", "--force-window", "--input-ipc-server=" + SOCK, "--"]) opts.extend(files)