all repos — tint2 @ 7f9ac5c584750173618fc5a03487fad69743348f

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Use application-x-executable for desktop entries without icons (issue #570)
o9000 mrovi9000@gmail.com
commit

7f9ac5c584750173618fc5a03487fad69743348f

parent

856ac5d821a5cd1da2824af39c3574064f1815ea

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M src/launcher/icon-theme-common.csrc/launcher/icon-theme-common.c

@@ -739,7 +739,7 @@ if (!wrapper)

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 @@ add_icon_path_to_cache(wrapper, icon_name, size, path);

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;