Method

GioSubprocessLauncherset_cwd

since: 2.40

Declaration

void
g_subprocess_launcher_set_cwd (
  GSubprocessLauncher* self,
  const gchar* cwd
)

Description

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

By default processes are launched with the current working directory of the launching process at the time of launch.

Available since: 2.40

Parameters

cwd

Type: const gchar*

The cwd for launched processes.

The data is owned by the caller of the function.
The value is a file system path, using the OS encoding.