mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 05:51:49 +08:00
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
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user