diff --git a/src/main.rs b/src/main.rs index 603cb2e..40ad9d6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -139,11 +139,9 @@ impl RustDoomLauncher { Ok((launch, comms)) => { let mut command_string = String::new(); // Feels like a bit of a hack, but it works I think - command_string.push_str(&Cow::from(launch).to_string()); + command_string.push_str(&format!(" '{}'", launch)); for c in comms { - command_string.push_str(" \'"); - command_string.push_str(c); - command_string.push('\'') + command_string.push_str(&format!(" '{}'", c)); } command_string }