Linux checking for DISPLAY variable: Don't check for WAYLAND_DISPLAY,

PrusaSlicer does not use it.
This commit is contained in:
Vojtech Bubnik 2021-11-30 12:58:47 +01:00
parent a09b4ff5c8
commit 229c45c729

View File

@ -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);