From 646a35d2da9f8bd044ac387e1541d51c60ad0ca8 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Tue, 19 Jun 2018 10:28:10 +0200 Subject: [PATCH] Do not search absolute paths in the icon_path The icon_path has no point for searching an absolute filename. It was actually meant to avoid the complex lookup algorithm of the icon theme spec. And the iconname in this case should be actually just the icon's basename when searching the path. Concatenating icons like `~/testimg.png` with all icon paths has no point and also an additional suffix has no point. --- src/icon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/icon.c b/src/icon.c index 6cf4731..096baee 100644 --- a/src/icon.c +++ b/src/icon.c @@ -94,10 +94,8 @@ GdkPixbuf *get_pixbuf_from_icon(const char *iconname) /* absolute path? */ if (iconname[0] == '/' || iconname[0] == '~') { pixbuf = get_pixbuf_from_file(iconname); - } - + } else { /* search in icon_path */ - if (!pixbuf) { char *start = settings.icon_path, *end, *current_folder, *maybe_icon_path; do {