Method
VtePtyspawn_async
Declaration [src]
void
vte_pty_spawn_async (
VtePty* pty,
const char* working_directory,
char** argv,
char** envv,
GSpawnFlags spawn_flags,
GSpawnChildSetupFunc child_setup,
gpointer child_setup_data,
GDestroyNotify child_setup_data_destroy,
int timeout,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Like vte_pty_spawn_with_fds_async(), except that this function does not
allow passing file descriptors to the child process. See vte_pty_spawn_with_fds_async()
for more information.
Available since: | 0.48 |
Parameters
working_directory |
const char* |
The name of a directory the command should start
in, or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
argv |
An array of filename |
Child’s argument vector. |
|
The array must be NULL -terminated. | |
The data is owned by the caller of the function. | |
Each element is a file system path, using the OS encoding. | |
envv |
An array of filename |
A list of environment
variables to be added to the environment before starting the process, or |
|
The argument can be NULL . | |
The array must be NULL -terminated. | |
The data is owned by the caller of the function. | |
Each element is a file system path, using the OS encoding. | |
spawn_flags |
GSpawnFlags |
Flags from |
|
child_setup |
GSpawnChildSetupFunc |
An extra child setup function to run in the child just before exec(), or |
|
The argument can be NULL . | |
child_setup_data |
gpointer |
User data for |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
child_setup_data_destroy |
GDestroyNotify |
A |
|
The argument can be NULL . | |
timeout |
int |
A timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely. |
|
cancellable |
GCancellable |
A |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
callback |
GAsyncReadyCallback |
A |
|
The argument can be NULL . | |
user_data |
gpointer |
User data for |
|
The argument can be NULL . | |
The data is owned by the caller of the function. |