mirror of https://github.com/mpv-player/mpv
x11: make screensaver failure message slightly more friendly
This commit is contained in:
parent
23b83c6676
commit
b17b8ff7fe
|
@ -487,8 +487,10 @@ static void *screensaver_thread(void *arg)
|
|||
break;
|
||||
|
||||
char *args[] = {"xdg-screensaver", "reset", NULL};
|
||||
if (mp_subprocess(args, NULL, NULL, NULL, NULL, &(char*){0})) {
|
||||
MP_WARN(x11, "Disabling screensaver failed.\n");
|
||||
int status = mp_subprocess(args, NULL, NULL, NULL, NULL, &(char*){0});
|
||||
if (status) {
|
||||
MP_WARN(x11, "Disabling screensaver failed (%d). Make sure the "
|
||||
"xdg-screensaver script is installed.\n", status);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue