From 35c6adf94b18d7d92f4dad65d3d0ea2f450718a2 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Wed, 6 Dec 2023 12:54:21 -0500 Subject: [PATCH] Fix Bug On X11 --- launcher/src/client/launcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/src/client/launcher.cpp b/launcher/src/client/launcher.cpp index 0ff44cc3..5c564517 100644 --- a/launcher/src/client/launcher.cpp +++ b/launcher/src/client/launcher.cpp @@ -152,7 +152,7 @@ int main(int argc, char *argv[]) { // Check For Display #ifndef MCPI_HEADLESS_MODE - if (getenv("DISPLAY") == NULL || getenv("WAYLAND_DISPLAY") == NULL) { + if (getenv("DISPLAY") == NULL && getenv("WAYLAND_DISPLAY") == NULL) { ERR("No display attached! Make sure $DISPLAY or $WAYLAND_DISPLAY is set."); } #endif