WEFT_OS/infra
Marco Allegretti a508f1ebe4
fix(appd): move only real app data and never replace a directory
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.
2026-10-09 08:52:09 +00:00
..
nixos build: select compiling Servo and Stylo fork revisions 2026-10-09 00:13:08 +00:00
scripts feat(compositor): add weft-compositor crate 2026-03-10 20:56:35 +01:00
shell fix(appd): move only real app data and never replace a directory 2026-10-09 08:52:09 +00:00
systemd fix(appd): move only real app data and never replace a directory 2026-10-09 08:52:09 +00:00
vm build(nix): add servo-shell/app-shell packages, real git hashes, fix VM configuration 2026-03-12 21:07:39 +01:00