openUri

fnbool openUri(string uri, char[] msgBuffer = null) @trusted

Opens a URI using the system's default handler.

This can be used to open URLs in the default browser, files in their associated applications, or email addresses in the default mail client.

Note

This function is not tested in unit tests as it would open

external applications.

Parameters

uriURI to open (e.g., "http://...", "file://...", "mailto:...")
msgBufferOptional buffer to receive error message

Returns

true on success, false on failure.

Example:

// Opens a URL in the default browser (not run in tests)
// openUri("http://www.fltk.org");