diff --git a/v2rayN/v2rayN.Desktop/Program.cs b/v2rayN/v2rayN.Desktop/Program.cs index 1a0ce38e..72e5934b 100644 --- a/v2rayN/v2rayN.Desktop/Program.cs +++ b/v2rayN/v2rayN.Desktop/Program.cs @@ -12,6 +12,13 @@ internal class Program [STAThread] public static void Main(string[] args) { + if (OperatingSystem.IsWindows() && + System.Runtime.InteropServices.RuntimeInformation.OSArchitecture == + System.Runtime.InteropServices.Architecture.Arm64) + { + Environment.SetEnvironmentVariable("AVALONIA_AUTOMATION", "0"); + } + if (OnStartup(args) == false) { Environment.Exit(0);