Skip to main content

Crate tilo_process_services

Crate tilo_process_services 

Source
Expand description

Process services: what an app borrows from its process.

The toolkit reads the clock, runs background work, reaches the clipboard, file choosers, URI handlers, speech, notifications, media controls, location and screen capture only through this crate. Each capability is a trait in process with a request/outcome vocabulary beside it (portal, mpris, location, capture, clipboard), so the same toolkit runs under the native desktop runner, inside an app process such as the compositor’s, or in a test that records every effect.

The user-mediated services’ traits and their Linux, macOS and web backends live in platform crates (tilo-clipboard, tilo-dialogs, …), which this crate re-exports; process::ProcessServices is the per-app registry of them. The remaining native backends (media sessions and screen capture) live in [native] behind the native feature. Location is the device’s own: a process asks the device’s action (devices/<device>/location#locate) and never the platform’s location service, which stays in the device’s daemon.

Apps do not depend on this crate: tilo-ui re-exports every module here under the same path (ui::portal, ui::process, ui::time, …), and tilo-app turns every service on by default.

Modules§

action_authority
Bounded read-only action policy transport. Consumers validate the typed binding and policy; this service never interprets a caller’s owner claim.
background
Background work and timers, provided by the process: tilo_rt::background under the toolkit’s module path.
capture
Screen capture, as the process provides it.
clipboard
Clipboard backends — how a ui process accesses the selection: tilo_clipboard under the toolkit’s module path.
env
The toolkit’s debug, capture and benchmark knobs: TILO_UI_* variables.
jpeg
JPEG encoding of 8-bit frames and decoded images.
location
Location, as an app’s process holds it: the device’s answer, which the host asks through the device’s own action (devices/<device>/location#locate) and installs here.
models
Asynchronous model access explicitly supplied by an authenticated process.
mpris
MPRIS — org.mpris.MediaPlayer2 desktop media control, in the toolkit.
notify
User notifications: tilo_notify under the toolkit’s module path.
png
Lossless PNG encoding and decoding of tightly packed 8-bit RGBA frames.
portal
File choosers and URI opening: tilo_dialogs::portal under the toolkit’s module path. The file-chooser and URI-opening vocabulary: requests, outcomes and the URI to path rule every backend shares.
process
Process services — the capabilities an app borrows from its process.
secrets
App-scoped secrets: tilo_secrets under the toolkit’s module path.
shell_choosers
The choosers the session shell draws itself (tilo_dialogs::shell), and the connection to it every app launched into a workspace is handed. Choosers the session shell draws itself, for sessions whose apps reach no desktop portal (a provider’s headless guest).
time
The toolkit’s clock: tilo-clock, under the toolkit’s module path.
wake
Instance-scoped background wake routing: tilo_rt::wake under the toolkit’s module path.