From f90b63863d1fc98ea8576d48aa208c747501e897 Mon Sep 17 00:00:00 2001 From: neonsweet Date: Tue, 1 Apr 2025 20:28:22 +0800 Subject: [PATCH] Update proxy_set_linux_sh --- 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 c22b383d..6267fd35 100644 --- a/v2rayN/ServiceLib/Sample/proxy_set_linux_sh +++ b/v2rayN/ServiceLib/Sample/proxy_set_linux_sh @@ -90,6 +90,11 @@ detect_desktop_environment() { return fi + if [[ "$XDG_CURRENT_DESKTOP" == *"X-Cinnamon"* ]] || [[ "$XDG_SESSION_DESKTOP" == *"cinnamon"* ]]; 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