From 20427a534eb0888928ff47a3adb2dac56122c8bc Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Fri, 14 Jan 2022 13:31:39 +0100 Subject: [PATCH] Respect WAYLAND_SOCKET on builds without wayland-client support --- src/detection/displayserver/wayland.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/displayserver/wayland.c b/src/detection/displayserver/wayland.c index 02dd0d167..224473f4d 100644 --- a/src/detection/displayserver/wayland.c +++ b/src/detection/displayserver/wayland.c @@ -153,9 +153,9 @@ void ffdsConnectWayland(const FFinstance* instance, FFDisplayServerResult* resul if(xdgSessionType != NULL && strcasecmp(xdgSessionType, "wayland") != 0) return; - //If XDG_SESSION_TYPE is not set, check if WAYLAND_DISPLAY is set. + //If XDG_SESSION_TYPE is not set, check if WAYLAND_DISPLAY or WAYLAND_SOCKET is set. //If not, there is no indicator for a wayland session - if(xdgSessionType == NULL && getenv("WAYLAND_DISPLAY") == NULL) + if(xdgSessionType == NULL && getenv("WAYLAND_DISPLAY") == NULL && getenv("WAYLAND_SOCKET") == NULL) return; //We are probably running a wayland compositor at this point, but fastfetch was compiled without the required library.