From 7901beee1ee19a05c09fdad5fe738056003c7b4e Mon Sep 17 00:00:00 2001 From: CRT Date: Tue, 13 Oct 2026 01:57:57 +0800 Subject: [PATCH] desktop (Linux): a missing update-desktop-database or xdg-mime no longer stops the app at start (the setup hook failed with 'No such file or directory'); storebound:// registration failure is a host.log warning --- apps/desktop/src-tauri/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs index 41e2d27..3e2a9b8 100644 --- a/apps/desktop/src-tauri/src/lib.rs +++ b/apps/desktop/src-tauri/src/lib.rs @@ -178,8 +178,12 @@ pub fn run() { show_main(app); } }); + // Linux: registering runs update-desktop-database and xdg-mime, which a minimal system may not have; a + // missing tool must not stop the app (it then only misses storebound:// links) #[cfg(any(target_os = "linux", all(debug_assertions, windows)))] - app.deep_link().register_all()?; + if let Err(e) = app.deep_link().register_all() { + logs::host("warn", &format!("storebound:// links not registered: {e}")); + } let handle = app.handle().clone(); app.deep_link().on_open_url(move |e| handle_deep_link(&handle, &e.urls())); if let Ok(Some(urls)) = app.deep_link().get_current() {