diff --git a/v2rayN/ServiceLib/Sample/linux_autostart_config b/v2rayN/ServiceLib/Sample/linux_autostart_config index c2f2f4e5..07eb0b27 100644 --- a/v2rayN/ServiceLib/Sample/linux_autostart_config +++ b/v2rayN/ServiceLib/Sample/linux_autostart_config @@ -7,4 +7,4 @@ X-GNOME-Autostart-enabled=true Name[en_US]=v2rayN Name=v2rayN Comment[en_US]=v2rayN -Comment=v2rayN \ No newline at end of file +Comment=v2rayN diff --git a/v2rayN/ServiceLib/Sample/proxy_set_linux_sh b/v2rayN/ServiceLib/Sample/proxy_set_linux_sh index 335cce0e..55896ae6 100644 --- a/v2rayN/ServiceLib/Sample/proxy_set_linux_sh +++ b/v2rayN/ServiceLib/Sample/proxy_set_linux_sh @@ -84,7 +84,7 @@ detect_desktop_environment() { echo "gnome" return fi - + if [[ "$XDG_CURRENT_DESKTOP" == *"XFCE"* ]] || [[ "$XDG_SESSION_DESKTOP" == *"XFCE"* ]]; then echo "gnome" return @@ -94,7 +94,7 @@ detect_desktop_environment() { echo "gnome" return fi - + if [[ "$XDG_CURRENT_DESKTOP" == *"UKUI"* ]] || [[ "$XDG_SESSION_DESKTOP" == *"ukui"* ]]; then echo "gnome" return @@ -144,6 +144,6 @@ elif [ "$DE" == "kde" ]; then set_gnome_proxy "$MODE" "$PROXY_IP" "$PROXY_PORT" "$IGNORE_HOSTS" set_kde_proxy "$MODE" "$PROXY_IP" "$PROXY_PORT" "$IGNORE_HOSTS" else - echo "Unsupported desktop environment: $DE" + echo "Unsupported desktop environment: $DE" >&2 exit 1 -fi \ No newline at end of file +fi