fix(deep-link): check update-desktop-database existence before executing (#3383)

On Linux, `update-desktop-database` (from `desktop-file-utils`) may not
be installed, especially on KDE systems. Instead of failing with an IO
error, log a warning when the command is not found and continue.

Non-NotFound errors still propagate as before.

Fixes #2265

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
authored and GitHub committed 2026-10-16 15:34:17 -03:00
1 parent c92bb67d7a
commit 8dc878fe34
2 files changed
+30 -5

No files matched your search

@@ -0,0 +1,6 @@
---
deep-link: patch
deep-link-js: patch
---
On Linux, `register` and `unregister` no longer fail when `update-desktop-database` is not installed. A warning is logged and the MIME cache update is skipped.