Skip to main content

open_browser

Function open_browser 

Source
pub fn open_browser(target: &str)
Expand description

Open target (a URL or file path) in the platform default handler.

Best-effort and detached: the launcher is spawned with inherited-nothing stdio, then reaped asynchronously. Launch failures are reported to the installed SpawnSink and never panic, matching the TypeScript fire-and-forget contract — callers still present the target to the user.