Skip to main content

Module environment

Module environment 

Source
Expand description

Process environment baselines.

Reconstructing the logged-in user’s environment is a host mechanic and lives in crate::platform::host: Windows builds it from machine and user settings, Unix rebuilds it from the passwd entry because no Unix API reconstructs a login environment. What this module owns is the policy – which baseline a spawn starts from, and how explicit entries are layered on top of it.

Functions§

user_baseline_environment
Return the logged-in user’s baseline environment.