mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
On clean shutdown (SIGINT/SIGTERM), save the list of running app IDs to /weft/last-session.json before calling shutdown_all(). On the next startup, load_session() reads and immediately deletes that file, then dispatches a LaunchApp for each saved app ID. This restores the previous session after a system restart or orderly service stop. If the file does not exist (crash, first boot, or deliberate reset) no auto-launch occurs. Duplicate detection relies on the existing fact that the saved processes are gone before appd starts again. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||