Expand description
Opening a URL in the user’s default browser.
The launcher differs per OS (open, xdg-open, cmd /c start). The
platform selection is a pure function tested against every OS string, and
the actual process spawn is injected, so nothing here needs a #[cfg] and
every branch is reachable under test on a single platform.
Functions§
- open_
command_ for - The launcher command and arguments for
urlonos. - open_
url - Open
urlin the default browser. - open_
url_ via - Open
urlin the default browser, spawning viaspawn. - spawn_
detached - Spawn
cmdfire-and-forget, discarding its output.