mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fixed not running on windows.
This commit is contained in:
parent
05c4661553
commit
6b98183093
1 changed files with 7 additions and 2 deletions
|
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue