From aa760af86790d6647fb362412d8690f2cfd975bb Mon Sep 17 00:00:00 2001 From: 0xPxt Date: Wed, 1 Apr 2026 16:19:41 +0200 Subject: [PATCH] fix(deep-link): remove quotes from Exec path in .desktop file on Linux (fix: #10570) --- .changes/fix-deep-link-linux-exec-quoting.md | 6 ++++++ plugins/deep-link/src/lib.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/fix-deep-link-linux-exec-quoting.md 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");