mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Linux checking for DISPLAY variable: Don't check for WAYLAND_DISPLAY,
PrusaSlicer does not use it.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user