Module splash_config

Module splash_config 

Source
Expand description

“Disable the splash” preference, resolved by the launcher before it spawns the splash (and before the host/srv exist), per SPEC_SPLASH_USERINFO_AND_DISABLE_2026_06_21.md §6.

Precedence: env override wins; otherwise settings.json "splash:disabled". Fail-safe: any error reading/parsing settings resolves to enabled — a broken read must never silently suppress the splash.

Functions§

config_dir 🔒
Best-effort config dir (holds settings.json) resolved the same way launcher_main does — but early and failure-tolerant.
env_override 🔒
Some(true) = disable, Some(false) = force-enable, None = no opinion.
settings_splash_disabled
Read "splash:disabled" (flat namespace:key) from a settings.json file. Missing file / parse error / missing key → false (enabled).
splash_disabled
True when the splash should be suppressed entirely (no window created).
truthy 🔒