Module services
Expand description
The native desktop implementation of HostServices.
- clipboard:
tilo_clipboard::system(); - files and opener:
tilo_dialogs::system_picker()andsystem_opener()(the XDG portal on Linux,NSOpenPanel/NSWorkspaceon macOS, the Common Item Dialogs on Windows), or withTILO_SAVE_DIRECTORYset,tilo_dialogs::unattended_pickerover them; handed the session shell’s chooser connection (a session with no portal),tilo_dialogs::inherited_shell_pickerin front of either; - speech: the system speech stack via [
tts::default_speaker]; - notifications:
tilo_notify::system(app_id); - media sessions: MPRIS on the session bus (with the
mprisfeature); - location:
tilo_location::system(); - screen capture: the XDG
ScreenCastportal on Linux (with theportalfeature, which the SDK turns on only there).
It is also the one place the toolkit reads the process environment:
process_environment turns launcher variables, XDG paths and
accessibility flags into a crate::host::HostEnvironment.
Functions§
- attach_
display - Attach the native clipboard to the runner’s Wayland display, so copies go
through the connection that owns the focused surface — the compositor only
accepts
set_selectionfrom that one. - install_
default_ if_ unset - Install
servicesas the process default unless a host already installed its own. Called by the native runner before it builds an app. - process_
environment - The host inputs a native launcher passes through the process environment.
- services
- The native services for this process:
HostServices::system.app_idnames the app to the host’s notification service; without one notifications are unavailable.