child's current working directory, or NULL to inherit parent's
child's argument vector
child's environment, or NULL to inherit parent's
flags from GSpawnFlags
function to run in the child just before exec()
user data for child_setup
return location for child output, or NULL
return location for child error messages, or NULL
return location for child exit status, as returned by waitpid(), or NULL
TRUE on success, FALSE if an error was set.
Executes a child synchronously (waits for the child to exit before returning). All output from the child is stored in standard_output and standard_error, if those parameters are non-NULL. Note that you must set the G_SPAWN_STDOUT_TO_DEV_NULL and G_SPAWN_STDERR_TO_DEV_NULL flags when passing NULL for standard_output and standard_error. If exit_status is non-NULL, the exit status of the child is stored there as it would be returned by waitpid(); standard UNIX macros such as WIFEXITED() and WEXITSTATUS() must be used to evaluate the exit status. Note that this function call waitpid() even if exit_status is NULL, and does not accept the G_SPAWN_DO_NOT_REAP_CHILD flag. If an error occurs, no data is returned in standard_output, standard_error, or exit_status. This function calls g_spawn_async_with_pipes() internally; see that function for full details on the other parameters and details on how these functions work on Windows.