Skip to content

Commit

Permalink
URL launcher needs UseShellExecute=true under .NET7
Browse files Browse the repository at this point in the history
  • Loading branch information
daleghent committed Nov 23, 2022
1 parent 1635898 commit d8df3b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Options.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ public Options() {
}

private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e) {
_ = Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
var procStartInfo = new ProcessStartInfo() {
FileName = e.Uri.AbsoluteUri,
UseShellExecute = true,
};

_ = Process.Start(procStartInfo);
e.Handled = true;
}

Expand Down

0 comments on commit d8df3b6

Please sign in to comment.