openInBrowser

Opens up the passed URL in a web browser.

@safe
openInBrowser
(
const string url
)

Parameters

url string

URL to open.

Return Value

Type: auto

A Pid of the spawned process. Remember to wait.

Throws

Exception if there were no DISPLAY environment variable on non-macOS Posix platforms, indicative of no X.org server or Wayland compositor running.

Meta