hykilpikonna / hyfetch

🏳️‍🌈 🏳️‍⚧️ Neofetch with LGBTQ+ pride flags!
MIT License
1.18k stars 93 forks source link

移除没用的空括号。原版本来没有的 #172

Closed CarterLi closed 11 months ago

CarterLi commented 11 months ago

image

diff --git a/neofetch b/neofetch
index e665812..e9460ed 100755
--- a/neofetch
+++ b/neofetch
@@ -2452,7 +2452,7 @@ get_de() {
     # TODO:
     #  - New config option + flag: --de_display_server on/off ?
     #  - Add display of X11, Arcan and anything else relevant.
-    [[ $de ]] && [[ $os != "Windows" ]] &&
+    [[ $de ]] && [[ $XDG_SESSION_TYPE != "" ]] &&
         de+=" (${XDG_SESSION_TYPE})"

     de_run=1
hykilpikonna commented 11 months ago

Thanks for reporting the issue!

image