Terminal.spawnAsync

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

ptyFlags vte.types.PtyFlags

flags from #VtePtyFlags

workingDirectory string

the name of a directory the command should start in, or null to use the current working directory

argv string[]

child's argument vector

envv string[]

a list of environment variables to be added to the environment before starting the process, or null

spawnFlags glib.types.SpawnFlags

flags from #GSpawnFlags

childSetup glib.types.SpawnChildSetupFunc

an extra child setup function to run in the child just before exec(), or null

timeout int

a timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely

cancellable gio.cancellable.Cancellable

a #GCancellable, or null

callback vte.types.TerminalSpawnAsyncCallback

a #VteTerminalSpawnAsyncCallback, or null