Skip to main content

spawn_detached

Function spawn_detached 

Source
pub fn spawn_detached(cmd: &mut Command) -> Result<()>
Expand description

Spawn cmd fire-and-forget, discarding its output.

The browser launcher is detached: we neither wait for it nor read its pipes, since it may outlive this process.

The Windows launcher is cmd /C start, which would otherwise flash a console on its way to opening the browser. start hands the URL to the shell association and needs no console of its own, so suppressing the window costs nothing - the browser still opens.