CI / test (push) Canceled after 1m11s
V's session.log had kwi (a Flatpak) failing with "bwrap: Can't find source path /run/user/1000/doc/by-app/org.kde.kwi". At login chandra-session restarts xdg-desktop-portal, and xdg-document-portal stopped and started with it in the same second (V's journal, 21:36:12); a Flatpak started in that gap, such as one session restore reopens, finds no FUSE mount to bind into its sandbox. When flatpak is installed, chandra-session now asks the document portal for its mount point (which also starts it), waits up to 5 s for the FUSE mount and checks it answers. If it doesn't, the reason goes to the log and into CHANDRA_SESSION_ERRORS, which the shell shows as an error notice once the desktop is up (DesktopShell::show_session_errors). A missing dbus-send is reported too. Tested: the snippet against a real xdg-document-portal on a dbus-run-session bus (mounted after 0 waits) and with an unreachable bus (error text); the notice in compositor/host/launch_test.mbt and headless with build/wasmhost. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiGJWeuHiTgtoyB4kb