From 6b98183093fe56ccbfc1f4f66548df7a42c1e30b Mon Sep 17 00:00:00 2001 From: Milutinke Date: Sat, 20 Aug 2022 19:58:17 +0200 Subject: [PATCH] Fixed not running on windows. --- MinecraftClient/Protocol/MicrosoftAuthentication.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/MinecraftClient/Protocol/MicrosoftAuthentication.cs b/MinecraftClient/Protocol/MicrosoftAuthentication.cs index 6b487c07..b419806c 100644 --- a/MinecraftClient/Protocol/MicrosoftAuthentication.cs +++ b/MinecraftClient/Protocol/MicrosoftAuthentication.cs @@ -94,8 +94,13 @@ namespace MinecraftClient.Protocol { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { - link = link.Replace("&", "^&"); - Process.Start(new ProcessStartInfo(link) { UseShellExecute = true }); + var ps = new ProcessStartInfo(link) + { + UseShellExecute = true, + Verb = "open" + }; + + Process.Start(ps); } else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) {