From d433c078afa61c27b9a78a8765f34a22d67f7cbd Mon Sep 17 00:00:00 2001 From: yuritukhachevsky Date: Mon, 26 May 2025 10:43:56 +0800 Subject: [PATCH] add support for UKUI --- v2rayN/ServiceLib/Sample/proxy_set_linux_sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/v2rayN/ServiceLib/Sample/proxy_set_linux_sh b/v2rayN/ServiceLib/Sample/proxy_set_linux_sh index 6267fd35..a2db3763 100644 --- a/v2rayN/ServiceLib/Sample/proxy_set_linux_sh +++ b/v2rayN/ServiceLib/Sample/proxy_set_linux_sh @@ -95,6 +95,11 @@ detect_desktop_environment() { return fi + if [[ "$XDG_CURRENT_DESKTOP" == *"UKUI"* ]] || [[ "$XDG_SESSION_DESKTOP" == *"ukui"* ]]; then + echo "gnome" + return + fi + local KDE_ENVIRONMENTS=("KDE" "plasma") for ENV in "${KDE_ENVIRONMENTS[@]}"; do if [ "$XDG_CURRENT_DESKTOP" == "$ENV" ] || [ "$XDG_SESSION_DESKTOP" == "$ENV" ]; then