Skip to main content

Module environment

Module environment 

Expand description

Host inputs — who the process is, where its files live, and how its user asked to be served.

Toolkit code takes these from environment (or from constructor parameters such as ui::record::RecordSet::open_in) rather than reading the process environment itself. Only the native runner derives them from the process — environment variables, the settings file — in ui::native::services::process_environment. Another host installs its own with install_environment.

Structs§

AccessibilityInputs
Accessibility requests the host passes to the app at startup.
ContinuationMetadata
Inert, app-owned resume projection sent only to the local shell.
HostEnvironment
Everything the host tells a ui process about itself.
HostIdentity
Who this process is and which workspace it serves.
HostPaths
Where this process’s user files live.
RunnerDiagnostics
Opt-in developer diagnostics for the runner and the toolkit.

Functions§

environment
The host inputs for this process: the installed ones, else — with the native feature — what the native runner reads from the process, else none.
install_environment
Install environment for this process, replacing any earlier one.
parse_posix_locale
A POSIX locale value (de_DE.UTF-8, or a LANGUAGE list such as de:en_US, whose first entry wins) as a language identifier. C, POSIX, empty and malformed values name none.