Pty.spawnAsync
void spawnAsync(string workingDirectory, string[] argv, string[] envv, glib.types.SpawnFlags spawnFlags, glib.types.SpawnChildSetupFunc childSetup, int timeout, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Like [vte.pty.Pty.spawnWithFdsAsync], except that this function does not allow passing file descriptors to the child process. See [vte.pty.Pty.spawnWithFdsAsync] for more information.
Parameters
workingDirectory | the name of a directory the command should start in, or null to use the current working directory |
argv | child's argument vector |
envv | a list of environment variables to be added to the environment before starting the process, or null |
spawnFlags | flags from #GSpawnFlags |
childSetup | an extra child setup function to run in the child just before exec(), or null |
timeout | a timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely |
cancellable | a #GCancellable, or null |
callback | a #GAsyncReadyCallback, or null |