Added quotes for cmd (#1806)

* Added quotes for cmd

* Add change file

---------

Co-authored-by: Tony <legendmastertony@gmail.com>
This commit is contained in:
Austin BennettandTony authored and GitHub committed 2024-09-19 09:59:54 +08:00
1 parent dd514e7a88
commit 3168e17603
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"deep-link": patch
---
Fix fails to start when having spaces in the main binary path on Windows
+1 -1
View File
@@ -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(())
}