Terminal.spawnAsync

void spawnAsync(vte.types.PtyFlags ptyFlags, string workingDirectory, string[] argv, string[] envv, glib.types.SpawnFlags spawnFlags, glib.types.SpawnChildSetupFunc childSetup, int timeout, gio.cancellable.Cancellable cancellable = null, vte.types.TerminalSpawnAsyncCallback callback = null)

A convenience function that wraps creating the #VtePty and spawning the child process on it. Like [vte.terminal.Terminal.spawnWithFdsAsync], except that this function does not allow passing file descriptors to the child process. See [vte.terminal.Terminal.spawnWithFdsAsync] for more information.

Parameters

ptyFlagsflags from #VtePtyFlags
workingDirectorythe name of a directory the command should start in, or null to use the current working directory
argvchild's argument vector
envva list of environment variables to be added to the environment before starting the process, or null
spawnFlagsflags from #GSpawnFlags
childSetupan extra child setup function to run in the child just before exec(), or null
timeouta timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely
cancellablea #GCancellable, or null
callbacka #VteTerminalSpawnAsyncCallback, or null