From 3ad0454988835085c6f4f5d152b5ce2daf62d7d2 Mon Sep 17 00:00:00 2001 From: JieXu Date: Mon, 27 Oct 2025 17:31:06 +0800 Subject: [PATCH] Update Program.cs --- v2rayN/v2rayN.Desktop/Program.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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);