WEFT_OS/crates/weft-appd
Marco Allegretti 92920984bd feat(appd): auto-launch weft-file-portal per session
spawn_file_portal() checks WEFT_FILE_PORTAL_BIN; if set, creates a
per-session Unix socket at /weft/portal-<id>.sock and
spawns weft-file-portal with --allow args derived from the same host
paths that resolve_preopens() produces for the session.

WEFT_FILE_PORTAL_SOCKET is added to the runtime environment so
weft-runtime (and the WASM app) can locate the socket.

The portal process is killed and the socket cleaned up at the end of
supervise(), after the runtime exits and the mount is torn down.

When WEFT_FILE_PORTAL_BIN is unset the behaviour is unchanged.
2026-03-11 18:09:38 +01:00
..
src feat(appd): auto-launch weft-file-portal per session 2026-03-11 18:09:38 +01:00
Cargo.toml feat(appd): add compositor IPC client; send AppSurfaceCreated/Destroyed on session lifecycle 2026-03-11 14:40:55 +01:00