diff --git a/.changes/fix-register-deep-link.md b/.changes/fix-register-deep-link.md new file mode 100644 index 000000000..6245a4687 --- /dev/null +++ b/.changes/fix-register-deep-link.md @@ -0,0 +1,6 @@ +--- +"deep-link": patch +"deep-link-js": patch +--- + +Fix runtime deep link registration failing on Linux when the app path has spaces. diff --git a/plugins/deep-link/src/lib.rs b/plugins/deep-link/src/lib.rs index 00757bf2a..55476bd78 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");