diff --git a/ElectronNET.CLI/ProcessHelper.cs b/ElectronNET.CLI/ProcessHelper.cs index 4803bd7..61d162c 100644 --- a/ElectronNET.CLI/ProcessHelper.cs +++ b/ElectronNET.CLI/ProcessHelper.cs @@ -19,7 +19,8 @@ namespace ElectronNET.CLI else { // works for OSX and Linux (at least on Ubuntu) - cmd.StartInfo = new ProcessStartInfo("bash", "-c " + command); + var escapedArgs = command.Replace("\"", "\\\""); + cmd.StartInfo = new ProcessStartInfo("bash", $"-c \"{escapedArgs}\""); } cmd.StartInfo.RedirectStandardInput = true;