mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
weft-pack treated any top-level data directory in a package as app data from the earlier layout, in every store and for every app: a package shipping data/ lost that content to the app data directory on uninstall and could then no longer be uninstalled. Data is now moved only from ~/.local/share/weft/apps/<id>/data, the only place earlier versions wrote it, and only for packages declaring an app-data capability; packages may no longer contain a top-level data entry. The move left an empty package directory behind, which then blocked weft-pack install although nothing was listed; an emptied package directory is now removed, and install accepts an empty leftover. The rename uses RENAME_NOREPLACE, so a target created after the check is reported as a conflict instead of being replaced, and a move across filesystems is refused with a message naming both locations instead of a bare OS error. Directories moved by weft-pack are made private too, and a symbolic link at the target is refused rather than followed. The system UI now shows launch refusals, which it only logged, and the weft-appd unit may write under ~/.local/share/weft, which ProtectSystem=strict made read-only. check_app_data.py also types into Notes after the move and requires the save to reach the moved file, and checks that no empty package directory remains. |
||
|---|---|---|
| .. | ||
| system-ui.html | ||
| weft-ui-kit.js | ||