summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2023-01-06 19:49:17 +0100
committersfan5 <sfan5@live.de>2023-01-07 13:16:03 +0100
commitc8a90001f237b8b0393638c7846000d0c3ee93b8 (patch)
tree40c6abb0e1d8065841daa71f3ba84c5b0132871b /TOOLS
parent33e73f4efde974584c9b577ea31f4441ae4545b5 (diff)
downloadmpv-c8a90001f237b8b0393638c7846000d0c3ee93b8.tar.bz2
mpv-c8a90001f237b8b0393638c7846000d0c3ee93b8.tar.xz
TOOLS/umpv: support shell-quotes in $MPV
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/umpv3
1 files changed, 2 insertions, 1 deletions
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)