mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-26 17:03: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. |
||
|---|---|---|
| .. | ||
| weft-appd | ||
| weft-build-meta | ||
| weft-compositor | ||
| weft-file-portal | ||
| weft-ipc-types | ||
| weft-mount-helper | ||
| weft-pack | ||
| weft-runtime | ||
| weft-servo-shell | ||