Linux checking for DISPLAY variable: Don't check for WAYLAND_DISPLAY,
PrusaSlicer does not use it.
This commit is contained in:
parent
a09b4ff5c8
commit
229c45c729
1 changed files with 3 additions and 2 deletions
|
@ -598,8 +598,9 @@ int CLI::run(int argc, char **argv)
|
||||||
#if !defined(_WIN32) && !defined(__APPLE__)
|
#if !defined(_WIN32) && !defined(__APPLE__)
|
||||||
// likely some linux / unix system
|
// likely some linux / unix system
|
||||||
const char *display = boost::nowide::getenv("DISPLAY");
|
const char *display = boost::nowide::getenv("DISPLAY");
|
||||||
const char *wayland_display = boost::nowide::getenv("WAYLAND_DISPLAY");
|
// const char *wayland_display = boost::nowide::getenv("WAYLAND_DISPLAY");
|
||||||
if (! ((display && *display) || (wayland_display && *wayland_display))) {
|
//if (! ((display && *display) || (wayland_display && *wayland_display))) {
|
||||||
|
if (! (display && *display)) {
|
||||||
// DISPLAY not set.
|
// DISPLAY not set.
|
||||||
boost::nowide::cerr << "DISPLAY not set, GUI mode not available." << std::endl << std::endl;
|
boost::nowide::cerr << "DISPLAY not set, GUI mode not available." << std::endl << std::endl;
|
||||||
this->print_help(false);
|
this->print_help(false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue