mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	icon-loader: fall back to app-id if icon from .desktop failed
Reported-By: LimeOn via IRC
This commit is contained in:
		
							parent
							
								
									d6686803ff
								
							
						
					
					
						commit
						e647fc7b23
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -290,6 +290,10 @@ icon_loader_lookup(struct server *server, const char *app_id, int size,
 | 
			
		|||
	} else {
 | 
			
		||||
		/* this should be the case for most icons */
 | 
			
		||||
		ret = process_rel_name(&ctx, icon_name, loader, lookup_size, lookup_scale);
 | 
			
		||||
		/* Icon defined in .desktop file could not be loaded, retry with app_id */
 | 
			
		||||
		if (ret < 0) {
 | 
			
		||||
			ret = process_rel_name(&ctx, app_id, loader, lookup_size, lookup_scale);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if (ret < 0) {
 | 
			
		||||
		return NULL;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue