gspawn: Add GSpawnFlag to use the PATH from envp
Add a G_SPAWN_SEARCH_PATH_FROM_ENVP flag to GSpawnFlags so that g_spawn_async() etc use the PATH variable from the passed-in child environment to search for the executable. If both this flag and the G_SPAWN_SEARCH_PATH flag are set, the child environment is searched first and only falls back to the PATH from the process environment if it is unset. Bug #676398.
Showing with 41 additions and 13 deletions