Fix Bug On X11

This commit is contained in:
TheBrokenRail 2023-12-06 12:54:21 -05:00
parent 1d08b8a29e
commit 35c6adf94b

View File

@ -152,7 +152,7 @@ int main(int argc, char *argv[]) {
// Check For Display // Check For Display
#ifndef MCPI_HEADLESS_MODE #ifndef MCPI_HEADLESS_MODE
if (getenv("DISPLAY") == NULL || getenv("WAYLAND_DISPLAY") == NULL) { if (getenv("DISPLAY") == NULL && getenv("WAYLAND_DISPLAY") == NULL) {
ERR("No display attached! Make sure $DISPLAY or $WAYLAND_DISPLAY is set."); ERR("No display attached! Make sure $DISPLAY or $WAYLAND_DISPLAY is set.");
} }
#endif #endif