From 028e322d2fe69a849b875220955a85510ac98d36 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 25 Nov 2020 18:41:53 +0100 Subject: [PATCH] ensure opening links in uis works correctly on .net core --- MLEM.Ui/UiSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM.Ui/UiSystem.cs b/MLEM.Ui/UiSystem.cs index 5831e24..3f3d98e 100644 --- a/MLEM.Ui/UiSystem.cs +++ b/MLEM.Ui/UiSystem.cs @@ -102,7 +102,7 @@ namespace MLEM.Ui { /// The actual link stored in the link code is stored in its 's 1st group. /// By default, the browser is opened with the given link's address. /// - public Action LinkBehavior = l => Process.Start(l.Match.Groups[1].Value); + public Action LinkBehavior = l => Process.Start(new ProcessStartInfo(l.Match.Groups[1].Value) {UseShellExecute = true}); /// /// The that this ui system is controlled by. /// The ui controls are also the place to change bindings for controller and keyboard input.