pub fn exec_to_command( exec: &str, entry_name: &str, entry_path: Option<&Path>, path_opt: &[impl AsRef<OsStr>], ) -> Option<Vec<Command>>