Skip to content

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

Closed
@CarterLi

Description

@CarterLi

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

Activity

hykilpikonna

hykilpikonna commented on Aug 18, 2023

@hykilpikonna
Owner

Thanks for reporting the issue!

image

added a commit that references this issue on Apr 30, 2024
4d9bbba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      移除没用的空括号。原版本来没有的 · Issue #172 · hykilpikonna/hyfetch