fix(deep-link): remove quotes from Exec path in .desktop file on Linux (fix tauri-apps/tauri#10570)#3374
fix(deep-link): remove quotes from Exec path in .desktop file on Linux (fix tauri-apps/tauri#10570)#33740xPxt wants to merge 1 commit intotauri-apps:v2from
Conversation
I doubt it helps. The quotes were added a month ago. This issue is 2 years old. Now you're not the first one (unless you were the one on discord) to report having issues with the quotes but they were added because we had issues with paths with spaces.
Looks like this is a bug in xdg-open https://gitlab.freedesktop.org/xdg/xdg-utils/-/work_items/151 - we should double check that spaces are broken (i'll try to get the repro that prompted us to add the quotes) and then maybe set the quotes only if we detect quotes. |
The
register()function wraps theExecpath in literal double quotes when generating.desktopfiles on Linux:Per the freedesktop Desktop Entry Spec,
Execvalues are not shell-parsed — the quotes become part of the binary path. Whenxdg-openhandles a deep link URL, it extracts the first token (including the literal"characters) and fails to find it:Removing the quotes fixes deep link delivery on Linux.
Intended to resolve tauri-apps/tauri#10570