Module splash_info

Module splash_info 

Source
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§

SplashInfo

Functions§

cmd_first_line 🔒
First non-empty stdout line of cmd args, trimmed. None on any failure.
dev_label 🔒
None on a stable release; otherwise a short badge.
ellipsize 🔒
Middle-ellipsize s to at most max chars 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.localdevbox).
username 🔒