environSetenv
fun environSetenv(envp: List<String>? = null, variable: String, value: String, overwrite: Boolean): List<String>
Sets the environment variable @variable in the provided list
Return
the updated environment list. Free it using g_strfreev().
Since
2.32
Parameters
envp
an environment list that can be freed using g_strfreev() (e.g., as returned from g_get_environ()), or null for an empty environment list
variable
the environment variable to set, must not contain '='
value
the value for to set the variable to
overwrite
whether to change the variable if it already exists