summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-05 19:04:35 +0100
committerwm4 <wm4@nowhere>2014-02-12 22:32:06 +0100
commit82b5361946942099490a65425b57c1ad73ca5193 (patch)
treeb1301c08506b079963da2bebea33a8cf13b0236b
parentf99f48684b535d4f3fedc1f4a9077b012fa79727 (diff)
downloadmpv-82b5361946942099490a65425b57c1ad73ca5193.tar.bz2
mpv-82b5361946942099490a65425b57c1ad73ca5193.tar.xz
umpv: silence mpv terminal output
Now it does basically the same as mkv.desktop. Explanation is included in the description comment.
-rwxr-xr-xTOOLS/umpv6
1 files changed, 4 insertions, 2 deletions
diff --git a/TOOLS/umpv b/TOOLS/umpv
index 162b4de467..d701166f72 100755
--- a/TOOLS/umpv
+++ b/TOOLS/umpv
@@ -13,7 +13,8 @@ otherwise 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.
+current terminal. It will not write output to stdout/stderr, because this
+will typically just fill ~/.xsession-errors with garbage.
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 +89,5 @@ else:
raise e
os.mkfifo(FIFO, 0600)
- subprocess.check_call(["mpv", "--force-window", "--input-file=" + FIFO] + files)
+ subprocess.check_call(["mpv", "--really-quiet", "--force-window",
+ "--input-file=" + FIFO, "--"] + files)