Skip to content

Commit

Permalink
Mac: fix compile error when using net7 sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Feb 7, 2025
1 parent 820306e commit d265aa2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Eto.Mac/Forms/ApplicationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,15 @@ static void restart_WillTerminate(object sender, EventArgs e)
var args = new string[]
{
"-c",
"open \"$1\"",
"open \"$1\"",
string.Empty,
NSBundle.MainBundle.BundlePath
};
#if ( MACOS10_15_OR_GREATER && NET8_0_OR_GREATER ) || MONOMAC
NSTask.LaunchFromUrl(NSUrl.FromFilename("/bin/sh"), args, out var error, null);
#else
NSTask.LaunchFromPath("/bin/sh", args);
#endif
}

public void Invoke(Action action)
Expand Down

0 comments on commit d265aa2

Please sign in to comment.