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 and collab-client code take these from environment (or from constructor parameters such as ui::record::RecordSet::open_in) rather than reading the process environment itself. Only the native fallback derives them from the process (process_environment, feature native). 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.

Constants§

FONT_INDEX_ENV
Env var naming the font index directory, for a process the launcher puts in a sandbox (HostPaths::font_index).

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.
media_player_bus_name
The MPRIS bus name of the media player a launched package publishes: org.mpris.MediaPlayer2.<package id>.
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.
process_environment
The host inputs a native launcher passes through the process environment.