Skip to content

Commit 9a757c4

Browse files
Fix launch failure when install path has spaces
1 parent 14cad18 commit 9a757c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src-tauri/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ fn extract_env_vars_from_tokens(tokens: &mut Vec<String>) -> HashMap<String, Str
503503
pub(crate) fn gen_launch_command(base_cmd: Command, launch_fmt: &str) -> Command {
504504
const REPLACEMENT_TOKEN: &str = "{}";
505505

506-
let mut base_command_str = base_cmd.get_program().to_string_lossy().to_string();
506+
let mut base_command_str = format!("\"{}\"", base_cmd.get_program().to_string_lossy());
507507
for arg in base_cmd.get_args() {
508508
base_command_str.push(' ');
509509
base_command_str.push_str(arg.to_string_lossy().to_string().as_str());

0 commit comments

Comments
 (0)