Modify to align with
MODIFY
WalletWasabi.Tests/UnitTests/Hwi/SerialDefaultResponseTests.cs
WalletWasabi.Tests/UnitTests/Hwi/SerialDefaultResponseTests.cs
@@ -37,7 +37,7 @@ namespace WalletWasabi.Tests.UnitTests.Hwi
{
using var cts = new CancellationTokenSource();
- var processBridge = new HwiProcessBridge(MicroserviceHelpers.GetBinaryPath("hwi"), new ProcessInvoker());
+ var processBridge = new HwiProcessBridge(new ProcessInvoker());
(string response, int exitCode) p = await processBridge.SendCommandAsync("--help", openConsole: false, cts.Token);
Assert.Equal(0, p.exitCode);

MODIFY
WalletWasabi/Helpers/EnvironmentHelpers.cs
WalletWasabi/Helpers/EnvironmentHelpers.cs
@@ -170,17 +170,15 @@ namespace WalletWasabi.Helpers
{
var escapedArgs = cmd.Replace("\"", "\\\"");
- using var process = Process.Start(
- new ProcessStartInfo
+ var startInfo = new ProcessStartInfo
{
- FileName = "/usr/bin/env sh",
- Arguments = $"-c \"{escapedArgs}\"",
+ FileName = "/usr/bin/env",
+ Arguments = $"sh -c \"{escapedArgs}\"",
RedirectStandardOutput = true,
UseShellExecute = false,
CreateNoWindow = true,
WindowStyle = ProcessWindowStyle.Hidden
- }
- );
+ };
if (waitForExit)
{

Modify to align with #4215.