GLib.environ_unsetenv
function environ_unsetenv(envp: Array(String), variable: String): Array(String) { // Gjs wrapper for g_environ_unsetenv() }
Removes the environment variable variable from the provided environment envp.
Since 2.32
- envp
an environment list that can be freed using GLib.strfreev (e.g., as returned from GLib.get_environ), or null for an empty environment list
- variable
the environment variable to remove, must not contain '='
- Returns
the updated environment list. Free it using GLib.strfreev.