Fix Bug On X11
This commit is contained in:
parent
1d08b8a29e
commit
35c6adf94b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user