getenv

open fun getenv(variable: String): String?

Returns the value of the environment variable @variable in the environment of processes launched from this launcher.

On UNIX, the returned string can be an arbitrary byte string. On Windows, it will be UTF-8.

Return

the value of the environment variable, null if unset

Since

2.40

Parameters

variable

the environment variable to get