x11: make screensaver failure message slightly more friendly

This commit is contained in:
wm4 2015-06-20 21:55:15 +02:00
parent 23b83c6676
commit b17b8ff7fe
1 changed files with 4 additions and 2 deletions

View File

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