Skip to content

Commit d925401

Browse files
NeonSweetneonsweet
and
neonsweet
authored
Update proxy_set_linux_sh (#7042)
Co-authored-by: neonsweet <[email protected]>
1 parent 17d586e commit d925401

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

v2rayN/ServiceLib/Sample/proxy_set_linux_sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ detect_desktop_environment() {
9090
return
9191
fi
9292

93+
if [[ "$XDG_CURRENT_DESKTOP" == *"X-Cinnamon"* ]] || [[ "$XDG_SESSION_DESKTOP" == *"cinnamon"* ]]; then
94+
echo "gnome"
95+
return
96+
fi
97+
9398
local KDE_ENVIRONMENTS=("KDE" "plasma")
9499
for ENV in "${KDE_ENVIRONMENTS[@]}"; do
95100
if [ "$XDG_CURRENT_DESKTOP" == "$ENV" ] || [ "$XDG_SESSION_DESKTOP" == "$ENV" ]; then

0 commit comments

Comments
 (0)