Method

GioSubprocessLauncherunsetenv

since: 2.40

Declaration

void
g_subprocess_launcher_unsetenv (
  GSubprocessLauncher* self,
  const gchar* variable
)

Description

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

On UNIX, the variable’s name can be an arbitrary byte string not containing ‘=’. On Windows, it should be in UTF-8.

Available since: 2.40

Parameters

variable

Type: const gchar*

The environment variable to unset, must not contain ‘=’

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