MysticBoy 5 years ago
parent
commit
7dfd0493af
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      shadowsocks-csharp/Util/Util.cs

+ 5
- 2
shadowsocks-csharp/Util/Util.cs View File

@@ -279,8 +279,11 @@ namespace Shadowsocks.Util
// hack because of this: https://github.com/dotnet/corefx/issues/10361
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
url = url.Replace("&", "^&");
Process.Start(new ProcessStartInfo("cmd", $"/c start {url}") { CreateNoWindow = true });
Process.Start(new ProcessStartInfo(url)
{
UseShellExecute = true,
Verb = "open"
});
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{


Loading…
Cancel
Save