Skip to content

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

Open
mvanhorn wants to merge 1 commit intotauri-apps:v2from
mvanhorn:osc/2265-check-update-desktop-database
Open

fix(deep-link): check update-desktop-database existence before executing#3383
mvanhorn wants to merge 1 commit intotauri-apps:v2from
mvanhorn:osc/2265-check-update-desktop-database

Conversation

@mvanhorn
Copy link
Copy Markdown

@mvanhorn mvanhorn commented Apr 9, 2026

Summary

On Linux, update-desktop-database from desktop-file-utils may not be installed. KDE systems don't require it. The current code calls it unconditionally and fails with an IO error when the command is missing.

This changes the call to handle ErrorKind::NotFound gracefully - logs a warning and continues instead of failing. Non-NotFound errors still propagate.

Changes

  • plugins/deep-link/src/lib.rs: Wrap the update-desktop-database invocation in a match that handles NotFound with a warning instead of returning an error.

Testing

  • cargo check -p tauri-plugin-deep-link passes

Fixes #2265

This contribution was developed with AI assistance (Claude Code).

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 tauri-apps#2265
@mvanhorn mvanhorn requested a review from a team as a code owner April 9, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug][deep-link] Check the existence of command update-desktop-database before executing

1 participant