Package: glib
Function g-setenv
Lambda Listg-setenv (variable value overwrite) ArgumentsReturn ValueFalse if the environment variable could not be set. Details Sets an environment variable. Both the name and value of the variable should 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. Note that on some systems, when variables are overwritten, the memory used for the previous variables and its value is not reclaimed. WarningIf you need to set up the environment for a child process, you can use the g_get_environ() function to get an environment array, modify that with the g_environ_setenv() and g_environ_unsetenv() functions, and then pass that array directly to the execvpe(), g_spawn_async() functions, or the like. | See also |
2021-9-3