Update proxy_set_linux_sh
Some checks are pending
release Linux / build (Release) (push) Waiting to run
release macOS / build (Release) (push) Waiting to run
release Windows desktop (Avalonia UI) / build (Release) (push) Waiting to run
release Windows / build (Release) (push) Waiting to run

https://github.com/2dust/v2rayN/issues/6937
This commit is contained in:
2dust 2025-03-19 10:04:06 +08:00
parent 9d7dcd2c4f
commit 7182be921d

View file

@ -84,6 +84,11 @@ detect_desktop_environment() {
echo "gnome" echo "gnome"
return return
fi fi
if [[ "$XDG_CURRENT_DESKTOP" == *"XFCE"* ]] || [[ "$XDG_SESSION_DESKTOP" == *"XFCE"* ]]; then
echo "gnome"
return
fi
local KDE_ENVIRONMENTS=("KDE" "plasma") local KDE_ENVIRONMENTS=("KDE" "plasma")
for ENV in "${KDE_ENVIRONMENTS[@]}"; do for ENV in "${KDE_ENVIRONMENTS[@]}"; do