Spawn.commandLineAsync

A simple version of Spawn.async that parses a command line with g_shell_parse_argv() and passes it to Spawn.async. Runs a command line in the background. Unlike Spawn.async, the G_SPAWN_SEARCH_PATH flag is enabled, other flags are not. Note that G_SPAWN_SEARCH_PATH can have security implications, so consider using Spawn.async directly if appropriate. Possible errors are those from g_shell_parse_argv() and Spawn.async.

The same concerns on Windows apply as for Spawn.commandLineSync.

class Spawn
static
bool
commandLineAsync
()

Parameters

commandLine string

a command line

Return Value

Type: bool

TRUE on success, FALSE if error is set

Throws

GException on failure.