Skip to content

Commit

Permalink
Added quotes for cmd (#1806)
Browse files Browse the repository at this point in the history
* Added quotes for cmd

* Add change file

---------

Co-authored-by: Tony <legendmastertony@gmail.com>
  • Loading branch information
auggiebennett and Legend-Master committed Sep 19, 2024
1 parent dd514e7 commit 3168e17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/deep-link-space-in-path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"deep-link": patch
---

Fix fails to start when having spaces in the main binary path on Windows
2 changes: 1 addition & 1 deletion plugins/deep-link/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ mod imp {

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

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

Ok(())
}
Expand Down

0 comments on commit 3168e17

Please sign in to comment.