Skip to content

fix(deep-link): handler not set as default on linux #2844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: v2
Choose a base branch
from

Conversation

yobson1
Copy link

@yobson1 yobson1 commented Jul 13, 2025

the usage of xdg-mime was incorrect, we have to pass the full mime type including the x-scheme-handler/ part to properly set the generated .desktop as the default handler for the protocol. this PR simply addresses that.

i have tested this by checking with Kesomannen/gale using xdg-mime query default to check that it previously did not set the default correctly and that with this change it does.

also fixes an issue that can occur if a tauri app using the plugin were to call the deep link register function more than once: it would continue to append to the existing .desktop file with the MimeType even if it was already in the existing .desktop file meaning you would end up with a huge MimeType section with as many duplicate entries as times the function has ever been called.

yobson1 added 2 commits July 13, 2025 19:19
`xdg-mime default` needs to be given the full mimetype, not just the protocol on its own
Copy link
Contributor

github-actions bot commented Jul 13, 2025

Package Changes Through 06e26a5

There are 6 changes which include barcode-scanner with minor, barcode-scanner-js with minor, deep-link with patch, deep-link-js with patch, window-state with minor, window-state-js with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.30 2.0.31
api-example-js 2.0.26 2.0.27
deep-link-example-js 2.2.3 2.2.4
barcode-scanner 2.3.0 2.4.0
barcode-scanner-js 2.3.0 2.4.0
deep-link 2.4.0 2.4.1
deep-link-js 2.4.0 2.4.1
single-instance 2.3.0 2.3.1
window-state 2.3.0 2.4.0
window-state-js 2.3.0 2.4.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

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.

1 participant