pub fn with_detached<T: AsRef<OsStr>>( path: T, app: impl Into<String>, ) -> Result<()>
Open path with the given application using a detached process, which is useful if the program ends up to be blocking or want to out-live your app. Otherwise, prefer with() for straightforward error handling.
with()
See documentation of with() for more details.