From 7f9ac5c584750173618fc5a03487fad69743348f Mon Sep 17 00:00:00 2001 From: o9000 Date: Mon, 7 Mar 2016 22:45:45 +0100 Subject: [PATCH] Use application-x-executable for desktop entries without icons (issue #570) --- src/launcher/icon-theme-common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/launcher/icon-theme-common.c b/src/launcher/icon-theme-common.c index 9035be0..f9e7f83 100644 --- a/src/launcher/icon-theme-common.c +++ b/src/launcher/icon-theme-common.c @@ -739,7 +739,7 @@ char *get_icon_path(IconThemeWrapper *wrapper, const char *icon_name, int size) return NULL; if (!icon_name || strlen(icon_name) == 0) - return NULL; + goto notfound; char *path = get_icon_path_from_cache(wrapper, icon_name, size); if (path) @@ -763,7 +763,8 @@ char *get_icon_path(IconThemeWrapper *wrapper, const char *icon_name, int size) return path; } - fprintf(stderr, RED "Could not find icon %s, using default." RESET "\n", icon_name); +notfound: + fprintf(stderr, RED "Could not find icon '%s', using default." RESET "\n", icon_name); path = get_icon_path_helper(wrapper->themes, DEFAULT_ICON, size); if (path) return path;