mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user