summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-05 18:55:06 +0100
committerwm4 <wm4@nowhere>2014-02-05 18:55:06 +0100
commitf77efbcce9cc5aafa399072f9117e5cb46d76c69 (patch)
treec4579c75e0f855733e1f081c313f1d978838081f
parentfdd5d00be314b170bdf9e032de50a47da119b87a (diff)
downloadmpv-f77efbcce9cc5aafa399072f9117e5cb46d76c69.tar.bz2
mpv-f77efbcce9cc5aafa399072f9117e5cb46d76c69.tar.xz
umpv: use --force-window
This makes it show a window even when playing audio-only files.
-rwxr-xr-xTOOLS/umpv6
1 files changed, 2 insertions, 4 deletions
diff --git a/TOOLS/umpv b/TOOLS/umpv
index df1c089bc1..892221f8d1 100755
--- a/TOOLS/umpv
+++ b/TOOLS/umpv
@@ -14,9 +14,7 @@ not playable, mpv will skip the playlist entry when attempting to play it (from
the GUI perspective, it's silently ignored).
If mpv isn't running yet, this script will start mpv and let it control the
-current terminal. If you play an audio-only file, mpv will not open a window
-(that is its normal behavior; but it might not be what a user expects if this
-script is used in a GUI setting).
+current terminal.
mpv will terminate if there are no more files to play, and running the umpv
script after that will start a new mpv instance.
@@ -88,4 +86,4 @@ else:
raise e
os.mkfifo(FIFO, 0600)
- subprocess.check_call(["mpv", "--input-file=" + FIFO] + files)
+ subprocess.check_call(["mpv", "--force-window", "--input-file=" + FIFO] + files)