From 229c45c729c88cb7a0427aeb7804627d76390cbe Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Tue, 30 Nov 2021 12:58:47 +0100 Subject: [PATCH] Linux checking for DISPLAY variable: Don't check for WAYLAND_DISPLAY, PrusaSlicer does not use it. --- src/PrusaSlicer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PrusaSlicer.cpp b/src/PrusaSlicer.cpp index 4c3aeffa52..3d2e6e6b76 100644 --- a/src/PrusaSlicer.cpp +++ b/src/PrusaSlicer.cpp @@ -598,8 +598,9 @@ int CLI::run(int argc, char **argv) #if !defined(_WIN32) && !defined(__APPLE__) // likely some linux / unix system const char *display = boost::nowide::getenv("DISPLAY"); - const char *wayland_display = boost::nowide::getenv("WAYLAND_DISPLAY"); - if (! ((display && *display) || (wayland_display && *wayland_display))) { + // const char *wayland_display = boost::nowide::getenv("WAYLAND_DISPLAY"); + //if (! ((display && *display) || (wayland_display && *wayland_display))) { + if (! (display && *display)) { // DISPLAY not set. boost::nowide::cerr << "DISPLAY not set, GUI mode not available." << std::endl << std::endl; this->print_help(false);