From 3724fb5b9b6089e21c60e6db5fc14ddff0ab010d Mon Sep 17 00:00:00 2001 From: parhelia512 <0011d3@gmail.com> Date: Sat, 25 Oct 2025 04:09:46 +0800 Subject: [PATCH] fix: fix system proxy on TrinityDE --- 3rdparty/qv2ray/v2/proxy/QvProxyConfigurator.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/3rdparty/qv2ray/v2/proxy/QvProxyConfigurator.cpp b/3rdparty/qv2ray/v2/proxy/QvProxyConfigurator.cpp index 99f6cb6..f52f8ff 100644 --- a/3rdparty/qv2ray/v2/proxy/QvProxyConfigurator.cpp +++ b/3rdparty/qv2ray/v2/proxy/QvProxyConfigurator.cpp @@ -273,7 +273,8 @@ namespace Qv2ray::components::proxy { QList actions; // bool isKDE = qEnvironmentVariable("XDG_SESSION_DESKTOP") == "KDE" || - qEnvironmentVariable("XDG_SESSION_DESKTOP") == "plasma"; + qEnvironmentVariable("XDG_SESSION_DESKTOP") == "plasma"|| + qEnvironmentVariable("XDG_SESSION_DESKTOP") == "tde"; const auto configPath = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation); QString kwriteconfigCmd = qEnvironmentVariable("KDE_SESSION_VERSION") == "5" ? "kwriteconfig5" : qEnvironmentVariable("KDE_SESSION_VERSION") == "6" ? "kwriteconfig6" : "kwriteconfig"; @@ -384,7 +385,8 @@ namespace Qv2ray::components::proxy { #elif defined(Q_OS_LINUX) QList actions; const bool isKDE = qEnvironmentVariable("XDG_SESSION_DESKTOP") == "KDE" || - qEnvironmentVariable("XDG_SESSION_DESKTOP") == "plasma"; + qEnvironmentVariable("XDG_SESSION_DESKTOP") == "plasma"|| + qEnvironmentVariable("XDG_SESSION_DESKTOP") == "tde"; const auto configRoot = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation); // Setting System Proxy Mode to: None