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

@ -256,9 +256,17 @@ struct DesktopInfo {
fn default_app_icon() -> PathBuf { fn default_app_icon() -> PathBuf {
freedesktop_icons::lookup("application-default") freedesktop_icons::lookup("application-default")
.with_theme("Pop")
.with_size(128) .with_size(128)
.with_cache() .with_cache()
.find() .find()
.or_else(|| {
freedesktop_icons::lookup("application-x-executable")
.with_theme("default")
.with_size(128)
.with_cache()
.find()
})
.unwrap_or_default() .unwrap_or_default()
} }