Skip to main content

resolve_program

Function resolve_program 

Source
pub fn resolve_program(
    program: OsString,
    env: &[(OsString, OsString)],
    cwd: Option<&Path>,
) -> Result<OsString>
Expand description

Resolve before wrapping: systemd-run must not substitute its own executable search rules for the child’s PATH/cwd. Missing programs remain spawn errors.