app-list: Fix default icon

This commit is contained in:
Victoria Brekenfeld 2023-09-29 14:31:30 +02:00
parent 6e15d8e282
commit 3488600e82

View file

@ -255,11 +255,19 @@ struct DesktopInfo {
} }
fn default_app_icon() -> PathBuf { fn default_app_icon() -> PathBuf {
freedesktop_icons::lookup("application-default") freedesktop_icons::lookup("application-default")
.with_size(128) .with_theme("Pop")
.with_cache() .with_size(128)
.find() .with_cache()
.unwrap_or_default() .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<String>) -> Vec<DesktopInfo> { fn desktop_info_for_app_ids(mut app_ids: Vec<String>) -> Vec<DesktopInfo> {