Skip to main content

Crate tilo_dialogs

Crate tilo_dialogs 

Source
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§

Resolver

Enums§

Availability
Feature

Traits§

FilePicker
UriOpener

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. elsewhere answers 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

Type Aliases§

Unsupported