isDisplayAvailable

fnbool isDisplayAvailable() @safe nothrow

Checks 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