Expand description
Choosers the session shell draws itself, for sessions whose apps reach no desktop portal (a provider’s headless guest).
The launcher hands every app a connection to the shell’s chooser service
(FD_ENV) and names the app and its workspace on it before the sandbox
starts, so the shell knows who asks without trusting the app. Requests and
replies are newline-delimited JSON (Request, Reply). The shell
shows its own file chooser. Legacy path results remain limited to existing
grants; owner-confirmed contents selections expose only bounded bytes on this
connection, never a directory grant or a replayable host path. When nobody is at the
computer it answers Reply::Nobody and the app falls back to the chooser it
brought (crate::unattended_picker or the desktop’s own), so a session with no
portal behind it still answers a Save.
Links go the same way (ShellLink::opener): the shell opens a link in
the app that claims its scheme, as its own search does, and answers
Reply::Unclaimed for one no app it knows opens, which the app then
hands to its desktop’s opener.
Structs§
- Chosen
App - File
Portal Grant - Retired: the token a contents answer named. Kept so a request written before the chooser handed descriptors still reads; a choice now answers a descriptor and a reference.
- Filter
- Handed
Document - One chosen file or folder: what reopens it later, and what it is called.
- Handshake
- Shell
Link
Enums§
Constants§
- FD_ENV
- MAX_
FRAME_ BYTES - The largest frame either end writes: a folder of many files answers with one grant each, so a choice of ten thousand small files fits on one line.
- PROTOCOL
- SERVICE
Functions§
- inherited_
opener - inherited_
picker - picker
- The shell’s chooser over
stream, askingelsewherewhat the session answersNobodyfor: a session with no portal behind it has nobody to choose a path for an app, and the save directory or the desktop’s own chooser still answers a Save.