From 84ad093f0649f8612b0ba40da9c9d8b2d58c2365 Mon Sep 17 00:00:00 2001 From: Izakbar Date: Wed, 19 Feb 2025 20:36:15 +0000 Subject: [PATCH] #63 fix click on forum url to display webpage as dotnet core 8 does not work the same as prior --- .../Presenters/Implementation/MainFormPresenter.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Eve-O-Preview/Presenters/Implementation/MainFormPresenter.cs b/src/Eve-O-Preview/Presenters/Implementation/MainFormPresenter.cs index bc7b067..540d478 100644 --- a/src/Eve-O-Preview/Presenters/Implementation/MainFormPresenter.cs +++ b/src/Eve-O-Preview/Presenters/Implementation/MainFormPresenter.cs @@ -244,9 +244,18 @@ namespace EveOPreview.Presenters private void OpenDocumentationLink() { + // funtimes + // https://brockallen.com/2016/09/24/process-start-for-urls-on-net-core/ + // https://github.com/dotnet/runtime/issues/17938 + // TODO Move out to a separate service / presenter / message handler +#if LINUX + Process.Start("xdg-open", new Uri(MainFormPresenter.FORUM_URL).AbsoluteUri); +#else ProcessStartInfo processStartInfo = new ProcessStartInfo(new Uri(MainFormPresenter.FORUM_URL).AbsoluteUri); + processStartInfo.UseShellExecute = true; Process.Start(processStartInfo); +#endif } private string GetApplicationVersion()