Expand description
File choosers, opening files with their app, and opening URIs: one API on Linux, macOS and the web.
Apps build a portal::PickRequest or portal::LaunchRequest and send
it, or call portal::open_uri; the outcome arrives over a channel the UI
thread drains. FilePicker and UriOpener are the boundaries a host fills
(ui::process::ProcessServices holds one of each per app): an app process inside Tilo
reaches the session’s chooser and opener over the sockets it was handed (shell), and a
runner hosting an app on a foreign desktop fills them from the desktop’s portals
(portal-client). system_picker and system_opener are this target’s backends.
availability says which Features the target has.
Modules§
- chooser_
service - The server side of the shell’s chooser protocol (
crate::shell). - chosen
- The files a person chose for an app in the system file chooser, outside any workspace.
- portal
- The file-chooser and URI-opening vocabulary: requests, outcomes and the URI to path rule every backend shares.
- shell
- Choosers the session shell draws itself, for sessions whose apps reach no desktop portal (a provider’s headless guest).
- web_
policy - Decisions the browser host makes before it touches the page. They need no JavaScript, so they build and are tested natively.
Structs§
Enums§
Traits§
Functions§
- availability
- available
- inherited_
shell_ opener - inherited_
shell_ picker - The session shell’s chooser, when the launcher handed this process its connection: the
person picks in the session’s own sheet.
elsewhereanswers what the session says nobody is at the computer for — a session with no desktop portal behind it has nobody to choose a path for an app, and the unattended picker or the desktop’s chooser still answers a Save. - install_
resolver - system_
opener - system_
picker - unattended_
picker - unavailable_
opener - unavailable_
picker