Fixed not running on windows.

This commit is contained in:
Milutinke 2022-08-20 19:58:17 +02:00
parent 05c4661553
commit 6b98183093

View file

@ -94,8 +94,13 @@ namespace MinecraftClient.Protocol
{ {
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{ {
link = link.Replace("&", "^&"); var ps = new ProcessStartInfo(link)
Process.Start(new ProcessStartInfo(link) { UseShellExecute = true }); {
UseShellExecute = true,
Verb = "open"
};
Process.Start(ps);
} }
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{ {