Browse Source

make osx work again

pull/3220/head
Jumar Macato 7 years ago
parent
commit
477d4b1d18
No known key found for this signature in database GPG Key ID: B19884DAC3A5BF3F
  1. 10
      src/Avalonia.Dialogs/AboutAvaloniaDialog.xaml.cs

10
src/Avalonia.Dialogs/AboutAvaloniaDialog.xaml.cs

@ -40,7 +40,7 @@ namespace Avalonia.Dialogs
{ {
var escapedArgs = cmd.Replace("\"", "\\\""); var escapedArgs = cmd.Replace("\"", "\\\"");
using var process = Process.Start( using (var process = Process.Start(
new ProcessStartInfo new ProcessStartInfo
{ {
FileName = "/bin/sh", FileName = "/bin/sh",
@ -50,10 +50,12 @@ namespace Avalonia.Dialogs
CreateNoWindow = true, CreateNoWindow = true,
WindowStyle = ProcessWindowStyle.Hidden WindowStyle = ProcessWindowStyle.Hidden
} }
); ))
if (waitForExit)
{ {
process.WaitForExit(); if (waitForExit)
{
process.WaitForExit();
}
} }
} }
} }

Loading…
Cancel
Save