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.
This commit is contained in:
		
							parent
							
								
									42cc561569
								
							
						
					
					
						commit
						646a35d2da
					
				| @ -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 { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Benedikt Heine
						Benedikt Heine