From 466cdd7f5d94fd895984f1cfcf78702085368748 Mon Sep 17 00:00:00 2001 From: Piers Deseilligny <42496508+piersdeseilligny@users.noreply.github.com> Date: Tue, 26 May 2020 15:28:47 +0100 Subject: [PATCH 1/4] Fix URLs not opening (WPF) --- src/Eto.Wpf/Forms/ApplicationHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Eto.Wpf/Forms/ApplicationHandler.cs b/src/Eto.Wpf/Forms/ApplicationHandler.cs index f5b4c9c903..ca6d0893e2 100644 --- a/src/Eto.Wpf/Forms/ApplicationHandler.cs +++ b/src/Eto.Wpf/Forms/ApplicationHandler.cs @@ -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() From 9d2d71800bae187a6f7e5bebb3f6d9e089618e76 Mon Sep 17 00:00:00 2001 From: Piers Deseilligny <42496508+piersdeseilligny@users.noreply.github.com> Date: Tue, 26 May 2020 15:30:39 +0100 Subject: [PATCH 2/4] Fix URLs not opening (WinForms) --- src/Eto.WinForms/Forms/ApplicationHandler.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Eto.WinForms/Forms/ApplicationHandler.cs b/src/Eto.WinForms/Forms/ApplicationHandler.cs index 30735c468d..4991a51b23 100644 --- a/src/Eto.WinForms/Forms/ApplicationHandler.cs +++ b/src/Eto.WinForms/Forms/ApplicationHandler.cs @@ -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) From ff54cf5b8eac4dc3749fba2050557bb8ac7fdb5e Mon Sep 17 00:00:00 2001 From: Piers Deseilligny <42496508+piersdeseilligny@users.noreply.github.com> Date: Tue, 26 May 2020 15:31:56 +0100 Subject: [PATCH 3/4] Fix URLs not opening (GTK) --- src/Eto.Gtk/Forms/ApplicationHandler.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Eto.Gtk/Forms/ApplicationHandler.cs b/src/Eto.Gtk/Forms/ApplicationHandler.cs index 9d6177738e..0e598d7dfa 100644 --- a/src/Eto.Gtk/Forms/ApplicationHandler.cs +++ b/src/Eto.Gtk/Forms/ApplicationHandler.cs @@ -222,8 +222,7 @@ public void Quit() public void Open(string url) { - var info = new ProcessStartInfo(url); - Process.Start(info); + Process.Start(new ProcessStartInfo("https://www.google.com") { UseShellExecute = true }); } public Keys CommonModifier { get { return Keys.Control; } } From d8d1859af99d80975b7a884b9dfef539493e24f1 Mon Sep 17 00:00:00 2001 From: Piers Deseilligny <42496508+piersdeseilligny@users.noreply.github.com> Date: Tue, 26 May 2020 15:34:42 +0100 Subject: [PATCH 4/4] Fix typo --- src/Eto.Gtk/Forms/ApplicationHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Eto.Gtk/Forms/ApplicationHandler.cs b/src/Eto.Gtk/Forms/ApplicationHandler.cs index 0e598d7dfa..32c044a510 100644 --- a/src/Eto.Gtk/Forms/ApplicationHandler.cs +++ b/src/Eto.Gtk/Forms/ApplicationHandler.cs @@ -222,7 +222,7 @@ public void Quit() public void Open(string url) { - Process.Start(new ProcessStartInfo("https://www.google.com") { UseShellExecute = true }); + Process.Start(new ProcessStartInfo(url) { UseShellExecute = true }); } public Keys CommonModifier { get { return Keys.Control; } }