Extract and apply StartupWMClass for proper taskbar icons

This commit is contained in:
2026-02-28 00:02:44 +02:00
parent a61f976546
commit fe353e1c5d
4 changed files with 39 additions and 0 deletions

View File

@@ -133,6 +133,11 @@ pub fn run_background_analysis(id: i64, path: PathBuf, appimage_type: AppImageTy
Some(meta.screenshot_urls.join("\n"))
};
// Store StartupWMClass
if let Some(ref wm_class) = meta.startup_wm_class {
db.set_startup_wm_class(id, Some(wm_class)).ok();
}
if let Err(e) = db.update_appstream_metadata(
id,
meta.appstream_id.as_deref(),