Skip to content

Commit 387097a

Browse files
committed
Fall back to application default icon
1 parent 4cc091b commit 387097a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/AppsPlugin/Plugin.vala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,13 @@ public class AppsProvider : SearchProvider {
291291

292292
if (icon_file.query_exists ()) {
293293
icon = new FileIcon (icon_file);
294+
} else {
295+
icon = new ThemedIcon ("application-default-icon");
294296
}
295-
} else {
297+
} else if (Gtk.IconTheme.get_for_display (Gdk.Display.get_default ()).has_icon (icon_name)) {
296298
icon = new ThemedIcon (icon_name);
299+
} else {
300+
icon = new ThemedIcon ("application-default-icon");
297301
}
298302
} catch (Error e) {
299303
debug ("Failed to get icon: %s", e.message);

0 commit comments

Comments
 (0)