Class

GioSubprocessLauncher

Description [src]

final class Gio.SubprocessLauncher : GObject.Object {
  /* No available fields */
}

This class contains a set of options for launching child processes, such as where its standard input and output will be directed, the argument list, the environment, and more.

While the GSubprocess class has high level functions covering popular cases, use of this class allows access to more advanced options. It can also be used to launch multiple subprocesses with a similar configuration.

Available since:2.40

Hierarchy

hierarchy this GSubprocessLauncher ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

g_subprocess_launcher_new

Creates a new GSubprocessLauncher.

Available since: 2.40

Instance methods

g_subprocess_launcher_close

Closes all the file descriptors previously passed to the object with g_subprocess_launcher_take_fd(), g_subprocess_launcher_take_stderr_fd(), etc.

Available since: 2.68

g_subprocess_launcher_getenv

Returns the value of the environment variable variable in the environment of processes launched from this launcher.

Available since: 2.40

g_subprocess_launcher_set_child_setup

Sets up a child setup function.

Available since: 2.40

g_subprocess_launcher_set_cwd

Sets the current working directory that processes will be launched with.

Available since: 2.40

g_subprocess_launcher_set_environ

Replace the entire environment of processes launched from this launcher with the given ‘environ’ variable.

Available since: 2.40

g_subprocess_launcher_set_flags

Sets the flags on the launcher.

Available since: 2.40

g_subprocess_launcher_set_stderr_file_path

Sets the file path to use as the stderr for spawned processes.

Available since: 2.40

g_subprocess_launcher_set_stdin_file_path

Sets the file path to use as the stdin for spawned processes.

Available since: 2.40

g_subprocess_launcher_set_stdout_file_path

Sets the file path to use as the stdout for spawned processes.

Available since: 2.40

g_subprocess_launcher_setenv

Sets the environment variable variable in the environment of processes launched from this launcher.

Available since: 2.40

g_subprocess_launcher_spawn

Creates a GSubprocess given a provided varargs list of arguments.

Available since: 2.40

g_subprocess_launcher_spawnv

Creates a GSubprocess given a provided array of arguments.

Available since: 2.40

g_subprocess_launcher_take_fd

Transfer an arbitrary file descriptor from parent process to the child. This function takes ownership of the source_fd; it will be closed in the parent when self is freed.

g_subprocess_launcher_take_stderr_fd

Sets the file descriptor to use as the stderr for spawned processes.

Available since: 2.40

g_subprocess_launcher_take_stdin_fd

Sets the file descriptor to use as the stdin for spawned processes.

Available since: 2.40

g_subprocess_launcher_take_stdout_fd

Sets the file descriptor to use as the stdout for spawned processes.

Available since: 2.40

g_subprocess_launcher_unsetenv

Removes the environment variable variable from the environment of processes launched from this launcher.

Available since: 2.40

Methods inherited from GObject (43)

Properties

Gio.SubprocessLauncher:flags
No description available.

Signals

Signals inherited from GObject (1)