pub fn user_baseline_environment() -> Result<Vec<(OsString, OsString)>>Expand description
Return the logged-in user’s baseline environment.
On Windows this is freshly constructed from machine and user settings via
CreateEnvironmentBlock and therefore excludes variables that exist only
in the current process. On Unix it is reconstructed from the user’s
identity (getpwuid_r): USER, LOGNAME, HOME, SHELL, a platform
default PATH, plus locale (LANG, LC_*), TZ, and TMPDIR carried
over from the current process when set. Non-Windows targets without a
resolvable passwd entry fall back to the current process environment.