Don't wait for linux and osx console
MODIFY
WalletWasabi/Hwi/ProcessBridge/HwiProcessBridge.cs
WalletWasabi/Hwi/ProcessBridge/HwiProcessBridge.cs
@@ -27,7 +27,8 @@ namespace WalletWasabi.Hwi.ProcessBridge
var createNoWindow = !openConsole;
var windowStyle = openConsole ? ProcessWindowStyle.Normal : ProcessWindowStyle.Hidden;
- if (openConsole && !RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+ bool unixWithConsole = openConsole && !RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
+ if (unixWithConsole)
{
var escapedArguments = (hwiPath + " " + arguments).Replace("\"", "\\\"");
useShellExecute = false;
@@ -58,6 +59,14 @@ namespace WalletWasabi.Hwi.ProcessBridge
using (var process = Process.Start(
startInfo
))
+ {
+ var successString = "{\"success\":\"true\"}";
+ if (unixWithConsole)
+ {
+ exitCode = 0;
+ responseString = successString;
+ }
+ else
{
await process.WaitForExitAsync(cancel).ConfigureAwait(false);
@@ -69,11 +78,12 @@ namespace WalletWasabi.Hwi.ProcessBridge
else
{
responseString = exitCode == 0
- ? "{\"success\":\"true\"}"
+ ? successString
: $"{{\"success\":\"false\",\"error\":\"Process terminated with exit code: {exitCode}.\"}}";
}
}
}
+ }
catch
{
Logger.LogInfo($"{nameof(startInfo.FileName)}: {startInfo.FileName}");

Don't wait for linux and osx console