Update proxy_set_linux_sh (#7042)

Co-authored-by: neonsweet <neonsweet@126.com>
pull/7053/head
NeonSweet 2025-04-02 09:39:51 +08:00 committed by GitHub
parent 17d586ea26
commit d92540121f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -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