Fix Bug On X11
Build / Build (AMD64, Server) (push) Successful in 10m3s Details
Build / Build (AMD64, Client) (push) Successful in 10m21s Details
Build / Build (ARM64, Server) (push) Successful in 8m32s Details
Build / Build (ARM64, Client) (push) Successful in 9m3s Details
Build / Build (ARMHF, Server) (push) Successful in 6m6s Details
Build / Build (ARMHF, Client) (push) Successful in 8m27s Details
Build / Release (push) Has been skipped Details
Build / Test (push) Successful in 16m31s Details

This commit is contained in:
TheBrokenRail 2023-12-06 12:54:21 -05:00
parent 1d08b8a29e
commit 35c6adf94b
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ int main(int argc, char *argv[]) {
// Check For Display
#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.");
}
#endif