diff --git a/.changes/fix-deep-link-linux-exec-quoting.md b/.changes/fix-deep-link-linux-exec-quoting.md new file mode 100644 index 0000000000..b90e458571 --- /dev/null +++ b/.changes/fix-deep-link-linux-exec-quoting.md @@ -0,0 +1,6 @@ +--- +"deep-link": patch +"deep-link-js": patch +--- + +Remove literal quotes around `Exec` path in generated `.desktop` file on Linux, fixing deep link registration via `xdg-open`. diff --git a/plugins/deep-link/src/lib.rs b/plugins/deep-link/src/lib.rs index 55476bd781..00757bf2af 100644 --- a/plugins/deep-link/src/lib.rs +++ b/plugins/deep-link/src/lib.rs @@ -293,7 +293,7 @@ mod imp { .unwrap_or_else(|| bin.into_os_string()) .to_string_lossy() .to_string(); - let qualified_exec = format!("\"{}\" %u", exec); + let qualified_exec = format!("{} %u", exec); let target = self.app.path().data_dir()?.join("applications");