From 9018313fb26fe1f95166c358bee78731f9efb0a3 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 27 Mar 2016 17:33:42 +0200 Subject: [PATCH] Print error message if default_icon.png cannot be loaded (issue #574) --- src/tint.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tint.c b/src/tint.c index 845800d..bf04b9a 100644 --- a/src/tint.c +++ b/src/tint.c @@ -505,6 +505,11 @@ void init_X11_post_config() default_icon = imlib_load_image(path); g_free(path); } + if (!default_icon) { + fprintf(stderr, + RED "Could not load default_icon.png. Please check that tint2 has been installed correctly!" RESET + "\n"); + } } void cleanup()