Skip to content

Commit

Permalink
Merge pull request #1695 from piersdeseilligny/develop
Browse files Browse the repository at this point in the history
Hotfix for Application.Instance.Open(url) not working in .net core
  • Loading branch information
cwensley authored May 26, 2020
2 parents cb5ab2f + d8d1859 commit 626d6f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/Eto.Gtk/Forms/ApplicationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ public void Quit()

public void Open(string url)
{
var info = new ProcessStartInfo(url);
Process.Start(info);
Process.Start(new ProcessStartInfo(url) { UseShellExecute = true });
}

public Keys CommonModifier { get { return Keys.Control; } }
Expand Down
3 changes: 1 addition & 2 deletions src/Eto.WinForms/Forms/ApplicationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ public void Quit()

public void Open(string url)
{
var info = new ProcessStartInfo(url);
Process.Start(info);
Process.Start(new ProcessStartInfo(url) { UseShellExecute = true });
}

public override void AttachEvent(string id)
Expand Down
2 changes: 1 addition & 1 deletion src/Eto.Wpf/Forms/ApplicationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public Keys AlternateModifier

public void Open(string url)
{
Process.Start(url);
Process.Start(new ProcessStartInfo(url) { UseShellExecute = true });
}

public void Run()
Expand Down

0 comments on commit 626d6f4

Please sign in to comment.