From 4e49416394124663dc5af72184a4eac60d981c2b Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Fri, 7 May 2021 16:16:23 +0200 Subject: [PATCH] fixed DE output when SESSION_DESKTOP == WM --- src/modules/de.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/modules/de.c b/src/modules/de.c index 955e48c7f..d6e4fb0a0 100644 --- a/src/modules/de.c +++ b/src/modules/de.c @@ -9,7 +9,7 @@ void ffPrintDesktopEnvironment(FFinstance* instance) { const FFWMDEResult* result = ffDetectWMDE(instance); - if(result->dePrettyName.length == 0 && result->sessionDesktop == NULL) + if(result->dePrettyName.length == 0) { ffPrintError(instance, FF_DE_MODULE_NAME, 0, &instance->config.deKey, &instance->config.deFormat, FF_DE_NUM_FORMAT_ARGS, "No DE found"); return; @@ -19,10 +19,7 @@ void ffPrintDesktopEnvironment(FFinstance* instance) { ffPrintLogoAndKey(instance, FF_DE_MODULE_NAME, 0, &instance->config.deKey); - if(result->dePrettyName.length > 0) - ffStrbufWriteTo(&result->dePrettyName, stdout); - else - fputs(result->sessionDesktop, stdout); + ffStrbufWriteTo(&result->dePrettyName, stdout); if(result->deVersion.length > 0) {