diff options
author | wm4 <wm4@nowhere> | 2015-06-20 21:55:15 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-20 21:55:15 +0200 |
commit | b17b8ff7fe91be294ffb229c0c143da7a6425fca (patch) | |
tree | 404144d3acd735091cc181ff71d270ea3dcb30e1 /video | |
parent | 23b83c6676c17963a59febeac72fdc73a4198769 (diff) | |
download | mpv-b17b8ff7fe91be294ffb229c0c143da7a6425fca.tar.bz2 mpv-b17b8ff7fe91be294ffb229c0c143da7a6425fca.tar.xz |
x11: make screensaver failure message slightly more friendly
Diffstat (limited to 'video')
-rw-r--r-- | video/out/x11_common.c | 6 |
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; } } |