From 0f3beeade858b05bd63af4a7b46c61cca0fe4caa Mon Sep 17 00:00:00 2001 From: hnrkndrssn Date: Wed, 8 Apr 2026 12:27:24 +1000 Subject: [PATCH] fix: replace IE fallback with explorer.exe and enable shell execute for browser opening The BrowserHelper was falling back to IExplore.exe (Internet Explorer) when the default browser failed to open, and was launching URIs without UseShellExecute=true. IE has been retired and removed from Windows since 2022, so the fallback now uses explorer.exe instead. Adding UseShellExecute=true is also required on .NET Core+ for launching URLs via ProcessStartInfo, as the default changed from .NET Framework behaviour. --- source/Octopus.Manager.Tentacle/Util/BrowserHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Octopus.Manager.Tentacle/Util/BrowserHelper.cs b/source/Octopus.Manager.Tentacle/Util/BrowserHelper.cs index 8b16ea275..e9233f4ac 100644 --- a/source/Octopus.Manager.Tentacle/Util/BrowserHelper.cs +++ b/source/Octopus.Manager.Tentacle/Util/BrowserHelper.cs @@ -10,11 +10,11 @@ public static void Open(Uri uri) { try { - Process.Start(new ProcessStartInfo(uri.AbsoluteUri)); + Process.Start(new ProcessStartInfo(uri.AbsoluteUri) { UseShellExecute = true }); } catch (Win32Exception) { - Process.Start(new ProcessStartInfo("IExplore.exe", uri.AbsoluteUri)); + Process.Start(new ProcessStartInfo("explorer.exe", uri.AbsoluteUri)); } } }