mirror of https://github.com/mpv-player/mpv
umpv: silence mpv terminal output
Now it does basically the same as mkv.desktop. Explanation is included in the description comment.
This commit is contained in:
parent
f99f48684b
commit
82b5361946
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue