From 3488600e82d28e8b76e664ff379b098bbbb1b498 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Fri, 29 Sep 2023 14:31:30 +0200 Subject: [PATCH] app-list: Fix default icon --- cosmic-app-list/src/app.rs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/cosmic-app-list/src/app.rs b/cosmic-app-list/src/app.rs index b2ee3a52..8f231fd4 100755 --- a/cosmic-app-list/src/app.rs +++ b/cosmic-app-list/src/app.rs @@ -255,11 +255,19 @@ struct DesktopInfo { } fn default_app_icon() -> PathBuf { - freedesktop_icons::lookup("application-default") - .with_size(128) - .with_cache() - .find() - .unwrap_or_default() + freedesktop_icons::lookup("application-default") + .with_theme("Pop") + .with_size(128) + .with_cache() + .find() + .or_else(|| { + freedesktop_icons::lookup("application-x-executable") + .with_theme("default") + .with_size(128) + .with_cache() + .find() + }) + .unwrap_or_default() } fn desktop_info_for_app_ids(mut app_ids: Vec) -> Vec {