Skip to content
  1. Docs
  2. enzimOS
  3. Developers

Framework integration

How enzimOS components consume the enzUI framework, how pins are kept in sync, and what stays the app's responsibility.

Every graphical enzimOS component, from the shell and Settings to the Store, Terminal, Installer and Recovery, is built on the enzUI framework and its enzICED renderer fork. This page explains how those components pin the framework, which shared services they take from it, and which behaviour each app keeps for itself.

Framework pins

Check the Cargo.toml and Cargo.lock at the revision used to build each package. The 28 November Installer and Recovery frontends pin enzUI and iced to exact public Git revisions. Shell and desktop packages are built and qualified as a release cohort. App repositories can move to later compatible pins between image builds.

Updating a source pin affects the next build. Rebuild and qualify the resulting image before publishing it. See Building from source.

Shared services from the framework

Application setup

Use enzui_widgets::app_setup for ordinary application event loops. It owns:

  • the clipboard provider and the exit keeper that preserves a copy after the app quits;
  • native text drag;
  • desktop preferences (theme, fonts, motion, window controls);
  • standard assistive-technology actions.

The shell, Settings and desktop helpers, Store, Terminal and Recovery pass their message catalogue through AppServices::localizer, so boot, updates, views, titles and subscriptions all translate in the same scope. Installer and Recovery use the shared ThemeIntegration with optional local mode overrides.

Apps with their own modal-aware focus traversal disable only the default traversal service, not the rest of the setup.

Desktop preferences

The desktop Settings portal publishes color scheme, text scaling and clock format, including change signals. Framework apps, native or sandboxed, follow the choices made in Settings without app code.

Single instance

The Store uses single_instance::SingleInstance with its desktop identity. A second launch forwards to the running process, which activates its window. Terminal keeps its own multi-window and --working-directory launch behaviour.

Portals and file choosers

Use completion_signal_subscription for portal completion wakes, keeping the app's request generation (and for Terminal, the exact pane and window owner) in the subscription identity. Native URL launches use the framework's host route; sandboxed processes use the portal.

Settings uses the file chooser's FallbackBackend for VPN profiles and SSH key files, which mounts the framework's own chooser when no portal is available. Cancelling or leaving the page retires the request and its dialog.

Window frames and titlebars

The framework draws its own titlebar by default on all desktops. Applications that deliberately want server decorations can still choose the desktop frame (or set ENZUI_SSD=1). The enzimOS compositor honours explicit client-side decoration requests, so its border-only server decoration cannot hide an app's own Close button.

Terminal, Store, Settings, Installer and Recovery follow the same titlebar pattern: the shell owns band geometry, gestures and window controls; enz_title_bar supplies leading and centre slots; commands go into .actions. Installer and Recovery route close requests through their guarded power handlers, so busy work cannot be dismissed by accident.

Use the framework's default popup overflow policy. Overlays stay inside the window when they fit and may leave it when necessary. Do not add offsets for the client-drawn titlebar or force every overlay into a native popup.

Busy indicators and dialogs

The Store uses SwitcherPage::with_busy for its Library tab, leaving measurement, right-to-left placement and busy semantics to the framework, while its own live region announces progress for assistive technology. Prefer typed context menus, dialog stacks and file-drop receipts where they replace an equivalent app workflow. A drop that stages data should complete its receipt only after the data is actually published.

Assistant connectors

Apps that offer functions to assistants use the framework's agent SDK (enzui_agent::center) to register a typed function registry with the MCP Center. The Store and Terminal enable this with their center build feature.

Localization

Keep only app-owned Fluent messages in app catalogues. The framework ships its own widget translations, including Spanish, and its lookup order keeps them ahead of an app's English fallback. Do not copy the framework catalogue into an app; it would shadow newer translations. The framework also provides right-to-left layout, pseudo-localization, locale formatting and text editing. See localization for the translator workflow.

Responsibilities that stay with the app

Some behaviour is domain-specific and deliberately not moved into the framework:

  • Terminal: PTY parsing, selection across scrollback, IME and focus ownership, SSH trust, credential redaction and session persistence.
  • Shell: clipboard history and compositor capture are desktop services, separate from the ordinary application clipboard provider.
  • Lock screen and greeter: they keep their own Wayland session, rendering, authentication and input boundary.
  • Session restore: still needs compositor support before the framework's Wayland session protocol can replace placement rules.
  • All apps: URL scheme admission, cancellation and stale-result rejection.

Standalone shipping apps

Files, Text, Calendar and Task Manager are built from individually committed sources in the shell's vendor/apps/. Each app is archived into its own build stage, linked against the common framework snapshot and built with its tracked lockfile. Build receipts bind the app's source commit, the framework revision, the lockfile and the build adapter. The OS-owned Terminal is a separate package.