summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2016-07-02 07:52:27 -0400
committerwm4 <wm4@nowhere>2016-07-05 19:16:01 +0200
commit4f4eea6b440d8c45d2967eaaa7f099ca8899e03e (patch)
treec0bde68c08db11dc8d1e71da253c740900172c41
parent33e72ed4517081a619ba3636718121a3401b71f9 (diff)
downloadmpv-4f4eea6b440d8c45d2967eaaa7f099ca8899e03e.tar.bz2
mpv-4f4eea6b440d8c45d2967eaaa7f099ca8899e03e.tar.xz
x11_common: silence xdg-screensaver
Some screen lockers have a habit of dumping output to the terminal when their output is reset. Ignore its output to keep the TTY output clean.
-rw-r--r--video/out/x11_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 647a91049c..b8c92100db 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -514,7 +514,7 @@ static void *screensaver_thread(void *arg)
break;
char *args[] = {"xdg-screensaver", "reset", NULL};
- int status = mp_subprocess(args, NULL, NULL, NULL, NULL, &(char*){0});
+ int status = mp_subprocess(args, NULL, NULL, mp_devnull, mp_devnull, &(char*){0});
if (status) {
MP_VERBOSE(x11, "Disabling screensaver failed (%d). Make sure the "
"xdg-screensaver script is installed.\n", status);