Function

GLib-2.0GLibspawn_command_line_async

  • A simple version of g_spawn_async() that parses a command line with g_shell_parse_argv() and passes it to g_spawn_async().

    Runs a command line in the background. Unlike g_spawn_async(), the GLib.SpawnFlags.SEARCH_PATH flag is enabled, other flags are not. Note that GLib.SpawnFlags.SEARCH_PATH can have security implications, so consider using g_spawn_async() directly if appropriate. Possible errors are those from g_shell_parse_argv() and g_spawn_async().

    The same concerns on Windows apply as for g_spawn_command_line_sync().

    Parameters

    • command_line: string

      a command line

    Returns boolean

    true on success, false if error is set