Update proxy_set_linux_sh

https://github.com/2dust/v2rayN/issues/6937
pull/6950/head
2dust 2025-03-19 10:04:06 +08:00
parent 9d7dcd2c4f
commit 7182be921d
1 changed files with 5 additions and 0 deletions

View File

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