Expand description
Platform services for egui-pop applications, each an opt-in plugin (a Cargo feature of this crate, on by default, and a plugin the application adds):
Experimental: may change in any release
(docs/stability.md).
instance: a single instance; a second launch hands its arguments and links to the running one (instance.second_launch,deeplink.open).notify: desktop notifications with actions routed to commands, falling back to toasts (notify.show,notify.action).tray: a tray icon whose menu is a declared egui-pop menu (tray.activate).keys: global shortcuts, the key bindings of the system scope registered with the desktop (keys.system).logs: logs to a rotating file in the platform’s log directory, with a level setting.crash: crash reports written by a panic hook and offered on the next start (crash.report); nothing is sent.focus: the window manager’s focus mode read in-process (the Settings portal,kwinrc, the registry), followed while running.open: the links service’s system opener: local files and folders opened with the system’s default application, and Reveal (the file manager with the file selected), through the portals in Flatpak.text_scale: the system’s text scaling read in-process (the Settings portal, KDE’s font DPI, the registry), the default of the text size setting.wheel_lines: the system’s lines a wheel’s notch (the registry on Windows), the default of the wheel speed setting.clipboard: the system clipboard over arboard (files, images, HTML, text, the primary selection), the clipboard’s system backend.thumbnails(off by default): the system’s thumbnails as a preview provider of the file picker (the freedesktop cache and thumbnailers; not yet on Windows and macOS).
Each service names its moments as steps (ADR 0011): a plugin may
observe, veto or redirect, replace or extend them; the application’s
kernel stays in charge through the host (ADR 0010). What each needs
from the package (a desktop file, a manifest, a bundle) is in
docs/packaging.md.
Modules§
- clipboard
- The system clipboard over arboard (feature
clipboard): the clipboard’sSystemBackendfor files, images, HTML and text, and the primary selection on X11 and Wayland. - crash
- Crash reports, written on the machine and offered on the next start. Nothing is sent anywhere.
- dirs
- Where an application keeps what it writes for itself: its state, its logs, its crash reports. Read from the environment, as each platform names these places:
- focus
- The window manager’s focus mode (click to focus, or focus following the pointer), read in the process instead of through a helper program.
- instance
- A single instance, and deep links.
- keys
- Global shortcuts: the key bindings of the system scope, registered with the desktop so their command runs while the application is not focused.
- logs
- Logs to a file in the platform’s log directory, rotated by size, at a level the user sets.
- notify
- Desktop notifications with actions, routed to commands, falling back to an in-app toast.
- open
- The links service’s system opener (ADR 0017): local files and folders
opened with the system’s default application, and Reveal, the file
manager with the file selected. Web pages and mail still go through
egui’s
OpenUrl(the browser,$BROWSERhonoured; a new tab on the web build). - strings
- The text the platform services show themselves, by key with English
fallbacks, translated by the installed
egui_pop_core::stringsprovider (egui-pop’s catalogues carry them). What their plugins declare (settings, commands, plugin titles) is translated where it is drawn, through keys derived from its id.ALLlists every key. - text_
scale - The system’s text scaling (the desktop’s “larger text”), read in the process, to seed egui-pop’s text size setting.
- thumbnails
- The system’s thumbnails as a preview provider of the file picker
(feature
thumbnails, off by default;ThumbnailsPlugin, opt-in): for what egui-pop’s own providers do not preview (PDF, office documents, videos, fonts…), the thumbnail the desktop made or can make. - tray
- A tray icon (a status icon in the panel, the notification area, the menu bar) with a declared menu.
- wheel_
lines - The lines a notch of the wheel moves on the system, read in the process, to seed egui-pop’s wheel speed: winit gives notches, and leaves the system’s lines out.
- window
- The main window brought to the front, as the platform services do
when a second launch, a tray click or a notification asks for the
application. In an application it is the bus’s
pop.window.activateof the main window (raise_app): the registry holds it as the active window and itspop.window.raiselistener brings it forward.