From 718fececaccb73b97aa0330b714108c99c75a8a5 Mon Sep 17 00:00:00 2001 From: JieXu Date: Sun, 26 Oct 2025 08:53:11 +0800 Subject: [PATCH] Simplify environment checks in Utils.cs Removed checks for APPIMAGE environment variable and mount path. --- v2rayN/ServiceLib/Common/Utils.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/v2rayN/ServiceLib/Common/Utils.cs b/v2rayN/ServiceLib/Common/Utils.cs index 5ca96a88..13e550f0 100644 --- a/v2rayN/ServiceLib/Common/Utils.cs +++ b/v2rayN/ServiceLib/Common/Utils.cs @@ -994,11 +994,6 @@ public class Utils return false; } - if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("APPIMAGE"))) - { - return true; - } - var exePath = GetExePath(); var baseDir = string.IsNullOrEmpty(exePath) ? StartupPath() : Path.GetDirectoryName(exePath) ?? ""; var p = baseDir.Replace('\\', '/'); @@ -1008,11 +1003,6 @@ public class Utils return false; } - if (p.Contains("/.mount_", StringComparison.Ordinal)) - { - return true; - } - if (p.StartsWith("/opt/v2rayN", StringComparison.OrdinalIgnoreCase)) { return true;