Expand description
Identity shown in the splash footer: user@host and v<version> (+ a dev
label on non-stable builds). Gathered once in the launcher and handed to each
platform’s splash backend, so the three render identical content.
All sourcing is dependency-light and best-effort — a missing field falls back to a placeholder and never blocks or crashes the splash.
Structs§
Functions§
- cmd_
first_ 🔒line - First non-empty stdout line of
cmd args, trimmed.Noneon any failure. - dev_
label 🔒 Noneon a stable release; otherwise a short badge.- ellipsize 🔒
- Middle-ellipsize
sto at mostmaxchars so the footer never widens the card. - hostname 🔒
- sanitize 🔒
- Keep printable ASCII (0x20..0x7E); replace anything else with ‘?’. The splash font only carries ASCII, so this keeps the footer legible for odd names.
- short_
host 🔒 - Short hostname: first dot-segment, sanitized (
devbox.local→devbox). - username 🔒