Gio.SubprocessLauncher.prototype.set_environ

function set_environ(env: String): void {
    // Gjs wrapper for g_subprocess_launcher_set_environ()
}
  

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

Typically you will build this variable by using GLib.listenv to copy the process 'environ' and using the functions GLib.environ_setenv, GLib.environ_unsetenv, etc.

As an alternative, you can use Gio.SubprocessLauncher.prototype.setenv, Gio.SubprocessLauncher.prototype.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.

Since 2.40

env

the replacement environment