Skip to main content

plan_launch

Function plan_launch 

Source
pub fn plan_launch(
    program: &OsStr,
    current_dir: Option<&Path>,
    options: &ApeOptions,
) -> Option<ApeLaunch>
Expand description

Plan how to run program if it resolves to an APE image.

current_dir is the child’s working directory, used to resolve a relative program path. None means program is not an APE image, the host runs APE images natively, or no loader is available; in each case the program should be spawned as it is.