Expand description
First-launch detection via a marker file under the user’s config
directory. PR-UI-1 ships only the plumbing: is_completed() reads
the marker; the actual onboarding tutorial that writes the marker
lands in PR-UI-7.
Functions§
- is_
completed - Has the operator finished the onboarding tutorial on this machine?
Returns
falsewhen the marker is absent, the config dir is unresolvable, or the file is unreadable for any reason — first-launch detection should never panic an otherwise-healthy launch. - mark_
completed - Write the marker so subsequent launches skip the tutorial. Reserved for PR-UI-7’s tutorial completion path; here only as the boundary of the public API so the rest of the crate can refer to it.
- marker_
path - Returns the path the marker file lives at. Honours
XDG_CONFIG_HOMEviadirs::config_dir, falling back to platform defaults.