SubprocessLauncher.setEnviron

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

Typically you will build this variable by using g_listenv() to copy the process 'environ' and using the functions g_environ_setenv(), g_environ_unsetenv(), etc.

As an alternative, you can use g_subprocess_launcher_setenv(), g_subprocess_launcher_unsetenv(), etc.

Pass %NULL to inherit the parent process' environment. Pass an empty array to set an empty environment.

On UNIX, all strings in this array can be arbitrary byte strings. On Windows, they should be in UTF-8.

class SubprocessLauncher
void
setEnviron
(
string[] env
)

Parameters

env string[]

the replacement environment

Meta

Since

2.40