GLib.spawn_command_line_async
function spawn_command_line_async(command_line: String): Boolean { // Gjs wrapper for g_spawn_command_line_async() }
A simple version of GLib.spawn_async that parses a command line with GLib.shell_parse_argv and passes it to GLib.spawn_async. Runs a command line in the background. Unlike GLib.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 GLib.spawn_async directly if appropriate. Possible errors are those from GLib.shell_parse_argv and GLib.spawn_async.
The same concerns on Windows apply as for GLib.spawn_command_line_sync.
- command_line
a command line
- Returns
true on success, false if error is set