Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
CarterLi opened this issue Aug 18, 2023 · 1 comment
Closed

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

CarterLi opened this issue Aug 18, 2023 · 1 comment

Comments

@CarterLi
Copy link

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
Copy link
Owner

Thanks for reporting the issue!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants