diff --git a/src/shared_x11.cpp b/src/shared_x11.cpp index 56b9a7cb..21223101 100644 --- a/src/shared_x11.cpp +++ b/src/shared_x11.cpp @@ -35,8 +35,11 @@ bool init_x11() { } failed = !display; - if (failed) + if (failed && displayid) SPDLOG_ERROR("XOpenDisplay failed to open display '{}'", displayid); + + if (!displayid) + SPDLOG_DEBUG("DISPLAY env is not set"); return !!display; }