Skip to content

Commit 3168e17

Browse files
Added quotes for cmd (#1806)
* Added quotes for cmd * Add change file --------- Co-authored-by: Tony <[email protected]>
1 parent dd514e7 commit 3168e17

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changes/deep-link-space-in-path.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"deep-link": patch
3+
---
4+
5+
Fix fails to start when having spaces in the main binary path on Windows

plugins/deep-link/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ mod imp {
278278

279279
let cmd_reg = CURRENT_USER.create(format!("{key_base}\\shell\\open\\command"))?;
280280

281-
cmd_reg.set_string("", &format!("{} \"%1\"", &exe))?;
281+
cmd_reg.set_string("", &format!("\"{}\" \"%1\"", &exe))?;
282282

283283
Ok(())
284284
}

0 commit comments

Comments
 (0)