WEFT_OS/crates
Marco Allegretti 7cf8639ae3
fix(compositor): bind each app session's Wayland client to its session through appd
The compositor stored appd's (pid, session) announcements and never used
them, so no surface could be attributed to a session and any client
could claim any app ID or the panel role.

weft-appd now creates a connected socket pair for each session, gives
the app shell one end as standard input with WAYLAND_SOCKET=0 and no
WAYLAND_DISPLAY, and sends the other end to the compositor with the
session and app ID over the compositor IPC socket (SCM_RIGHTS). The
compositor inserts it as a client bound to that session: holding the
connection is the session's identity. A session's zweft_shell windows
carry its app ID, the panel and overlay roles are refused to sessions
with a new role_not_permitted error, the session's first toplevel is
reported to appd, an ended session's client is closed, and a client's
disconnection is reported. The compositor accepts one appd connection
at a time.

The counter desktop check now requires the compositor to bind the app's
client to its session and to close it when the session is terminated.
2026-10-09 15:07:33 +00:00
..
weft-app-shell Merge remote-tracking branch 'origin/fix/confine-app-renderer' into fix/resolve-verified-package 2026-10-09 10:29:32 +00:00
weft-appd fix(compositor): bind each app session's Wayland client to its session through appd 2026-10-09 15:07:33 +00:00
weft-build-meta Initialize Rust workspace and repository metadata 2026-03-10 18:47:06 +01:00
weft-compositor fix(compositor): bind each app session's Wayland client to its session through appd 2026-10-09 15:07:33 +00:00
weft-file-portal fix(runtime): enforce effective capability grants per session 2026-10-09 08:08:58 +00:00
weft-ipc-types fix(compositor): bind each app session's Wayland client to its session through appd 2026-10-09 15:07:33 +00:00
weft-mount-helper fix(appd): resolve each launch to one package and fail closed on images 2026-10-09 10:03:40 +00:00
weft-pack test(appd): launch complete packages in the supervisor tests 2026-10-09 10:18:36 +00:00
weft-runtime Merge remote-tracking branch 'origin/fix/confine-app-renderer' into fix/resolve-verified-package 2026-10-09 11:43:01 +00:00
weft-servo-shell build(servo): trace pending classic scripts instead of rooting them 2026-10-09 10:29:24 +00:00