summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 9a1165a207..439db6a606 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -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;
}
}