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.

All strings in this array are expected to be in the GLib file name encoding. On UNIX, this means that they 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