isDisplayAvailable
fn
bool isDisplayAvailable() @safe nothrowChecks if a display server is available.
On Linux/Unix, checks for DISPLAY or WAYLAND_DISPLAY environment variables. On other platforms, assumes display is available.
Returns
true if a display server appears to be available