Skip to main content

windowless_command

Function windowless_command 

Source
pub fn windowless_command(program: impl AsRef<OsStr>) -> Command
Expand description

A Command for a helper program an application runs behind its window, such as reg, powershell or notify-send.

On Windows the program starts with no console window of its own. A desktop application built as a GUI program has no console to lend, so any console program it starts otherwise opens a terminal window that flashes and closes. Everywhere else this is Command::new(program).