diff --git a/cosmic-app-list/src/app.rs b/cosmic-app-list/src/app.rs index 91aa1e36..b2ee3a52 100755 --- a/cosmic-app-list/src/app.rs +++ b/cosmic-app-list/src/app.rs @@ -270,7 +270,7 @@ fn desktop_info_for_app_ids(mut app_ids: Vec) -> Vec { DesktopEntry::decode(&path, &input).ok().and_then(|de| { if let Some(i) = app_ids .iter() - .position(|s| s == de.appid || s.eq(&de.name(None).unwrap_or_default())) + .position(|s| s == de.appid || s.eq(&de.startup_wm_class().unwrap_or_default())) { let icon = freedesktop_icons::lookup(de.icon().unwrap_or(de.appid)) .with_size(128)