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.
This commit is contained in:
Ben Boeckel
2016-07-02 07:52:27 -04:00
committed by wm4
parent 33e72ed451
commit 4f4eea6b44

View File

@@ -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);