Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

Cupertino is an Arch-based Linux distribution with its own Wayland desktop, written in Rust on Smithay. You install it from a USB stick (Install from a USB stick), and its updates are signed packages that pacman can take back to an earlier release (Signed updates). The desktop is made of small processes around one compositor: a dock, a menu bar, a launcher, notifications, a control panel, a file manager, a settings app, a lock screen and a session manager.

Cupertino serves Wayland clients, and X11 programs through xwayland-satellite when it is installed. The project is early (0.x): the compositor runs nested in another Wayland session and on a TTY, and the TTY backend is in daily use on real hardware with an NVIDIA GPU.

Each crate has a README with its API and files. The repository root has the contribution rules (CONTRIBUTING.md), the contributor licence agreement, the security policy (SECURITY.md) and the licence (LICENSE, GPL-3.0-or-later; the library crates listed in the README carry their own MPL-2.0 LICENSE).

Trying Cupertino on your machine

Cupertino is early (0.x). This page is for testers: what to expect, what does not work yet, and how to report it.

Before you start

  • A current stable Rust toolchain, OpenGL ES drivers (Mesa), and a Wayland session to run nested in, or a free text console with logind and a DRM/KMS device.
  • Cupertino serves Wayland clients. X11 programs run when xwayland-satellite (0.8 or later) and Xwayland are installed; the satellite starts with the first X11 program.
  • Run either nested (a window in your current session) or on a text console; steps for both are in Building and running. The TTY session is in daily use on real hardware with an NVIDIA GPU and runs in virtual machines.
  • Nothing is installed and no service is enabled by these steps; they run from a checkout.

What works today

  • The compositor starts nested and on a TTY, and starts its shell processes with it.
  • The dock, menu bar, launcher, application switcher, overview, workspaces and hot corners.
  • Notifications, the control panel, and the volume and brightness overlays. The volume keys change the default PipeWire output; choosing the device and media controls are still open, see #21.
  • The file manager and the settings app.
  • Window management: move, resize, tile, full screen, minimise, close, switch windows, and Force Quit for an application that does not answer.
  • The lock screen, and log out, restart and shut down from the menu bar.
  • Screenshots of the screen, a window or a selection (Super+Shift+3, Super+Shift+4, Super+Shift+5 for the toolbar).
  • The portal backend: file chooser, screen sharing, screenshots and colour picking for apps (Portals).

Each has rough edges; the list above means the feature exists, not that it is finished.

Selected known problems

A selection of the open p1 problems a tester hits first. Each issue has the current state and any workaround; the live list is open p1 issues.

  • The installed-session quality backlog: menus and the pointer, sidebars, the control panel, notifications, Trash, quick preview, scrollbars and materials. Desktop quality and open issues lists each item with its issue.
  • Applications installed during a session are missing from the launcher until it restarts: #190.
  • The launcher and the overview stutter as they close: #158.
  • Audio: #21.
  • Multiple monitors: #22.

Reporting a bug

Open the bug report form. It asks for:

  • the commit (git rev-parse --short HEAD), your distribution and kernel, and your GPU and driver;
  • how Cupertino was running: TTY (--udev), nested (--winit) or headless (--headless);
  • the display resolution and scale;
  • steps to reproduce, what you expected and what happened.

Attach the log:

  • TTY run: ~/cupertino-tty.log (see Building and running).
  • Nested run: the output of cupertino-server in the terminal that started it.
  • Headless capture: the output of the cupertino-server --headless command that made it.

cupertino diagnose export --output FILE writes the versions, the machine check and the recorded errors into one file you can attach; --include-logs adds the scrubbed server and session logs (The cupertino command).

One problem per issue. Do not attach screenshots that show icons, fonts or wallpapers from a local asset pack. Report security problems privately, as SECURITY.md describes, not in an issue.

Using Cupertino every day

A short guide for the first days on a machine that uses Cupertino as its session. Everything here is taken from the crate READMEs and from changes that are on main; the server’s README (crates/cupertino-server/README.md) has the detail. Cupertino is early (0.x): this page says what exists and how it is meant to be used, not that it is finished. Where a step has not been run on real hardware, the page says so.

Starting and leaving a session

  • Start. On a machine installed from the USB image (see Install from a USB stick), cupertino-login starts the session on tty1: log in there. On other machines, the package installs the session entry cupertino.desktop, so GDM lists Cupertino in its session chooser; choose it, then log in. Do not turn on automatic login for this session while it is new: when the compositor ends for any reason, the session ends and GDM shows its login screen again, and automatic login would start the session again at once.
  • Leave normally. Log out from the menu bar’s system menu or with Super+Shift+Q. Applications are asked to quit first, and a confirmation panel appears. While the login process is restarting after a crash, Super+Shift+Q ends the session without asking.
  • Reopen applications. The log out, restart and shut down panels have Open my windows again after I log in, on until you turn it off; the panel remembers your choice. With it on, the applications that were open start again once at the next login, through their desktop entries. Applications without a desktop entry and the shell’s own programs are not saved. Each application opens as it does when you start it: getting its windows and documents back needs support in the application itself. After a crash or a power cut nothing is reopened.
  • Lock. Super+Ctrl+Q.
  • Leave at once. Ctrl+Alt+Backspace ends the compositor. Ctrl+Alt+F1 to F12 switch to a text console. Both are reserved: no application can take them over.
  • Bound the first login. Write a whole number of seconds into ~/.config/cupertino/session-limit, for example echo 600 > ~/.config/cupertino/session-limit. The compositor stops after that long. Remove the file for a normal session.
  • From a checkout, without GDM. On a free text console, start the checkout’s server; see Building and running.

Not verified: how GDM treats the session on a real machine (the virtual console, and the restart after a crash). The first login on the hardware is the test.

Keyboard shortcuts

KeysAction
Super+Spacelauncher
Super+Returnterminal (the first of foot, alacritty, kitty, wezterm and xterm that is installed)
Super+Tab, Super+Shift+Tabapplication switcher (release Super to pick)
Ctrl+Up, F3, the overview keyoverview (the same key closes it)
Ctrl+Left, Ctrl+Right, Ctrl+1 to Ctrl+9workspaces
Super+Q, Super+W, Super+M, Super+Hquit application, close tab or window (see below), minimize, hide application
Super+Ctrl+F, Super+Ctrl+Left, Super+Ctrl+Rightfull screen, tile left, tile right
Super+Alt+EscapeForce Quit
Super+Alt+Sscreen reader on or off, at the login screen and the lock screen too, the one shortcut that works on the lock screen besides switching consoles (the first of the installed readers, /usr/bin/orca; the same as Settings > Accessibility > Screen reader; no shortcuts file can take it while a reader is installed)
Shift+Super+/Help menu with its search field focused

To change a shortcut, add a chord = action line to ~/.config/cupertino/shortcuts.conf, for example Super+x = exec:foot, or Super+Tab = none to free a chord. The file is applied on top of the defaults. modifier_profile = classic-pc in ~/.config/cupertino/keyboard.conf switches to common PC keyboard habits (Alt+Tab switches, Alt+F4 closes, Ctrl is the command key in Settings and text fields, and a tap of Super alone opens the launcher).

Under the default profile Super is the command key in every application. Other applications get Super chords as the Ctrl chords they bind, and a Ctrl chord on a letter, digit, punctuation key or Return reaches them with Super instead, so Ctrl copies, pastes and closes nothing. In a text field the line-editing chords Ctrl+A, E, B, F, P, N, D and H move and delete as their keys do. Terminals keep Ctrl: they get Super and a letter as Ctrl+Shift and the letter, the chord terminals copy, paste and open tabs with. client_rewrite = off in keyboard.conf, or the application’s id in rewrite_off, sends every chord as it is pressed.

Super+W closes the front tab or document. Cupertino’s own applications decide what that is themselves: the compositor asks the window to close, and the application closes what is in front. Every other application, X11 ones included, gets Super+W as its own close chord, like any other Super chord: Ctrl+W (a browser closes the tab, an editor the document), or Ctrl+Shift+W in a terminal with tabs. A terminal without tabs (foot, Alacritty, xterm) has no such chord, so Super+W closes its window. An application whose chords are sent as they are pressed (client_rewrite = off, rewrite_off) gets the compositor’s close-window instead. Under classic-pc the application gets Ctrl+W as it is pressed. Application-wide and window chords stay the compositor’s in every application: Super+Q quits (it asks every window of the application to close), Super+M minimizes, Super+H hides, and the title bar’s close button and the menu bar’s Close Window close the window. An application with no Ctrl+W of its own does nothing on Super+W; close it with its close button or Super+Q.

Layouts, Compose and dead keys

  • Layouts. At login Cupertino reads the system layout (X11Layout, X11Variant and X11Options from localed). If keyboard.conf has no input_sources, those layouts become the input sources. To set them yourself, write input_sources = us, de, fr(nodeadkeys) in ~/.config/cupertino/keyboard.conf; that file wins over localed.
  • Switching. Ctrl+Space opens the input source list and steps through it (most recently used first); releasing the modifiers picks one. Ctrl+Alt+Space steps to the next source in menu order.
  • Option characters. Both Alt keys act as Option (not under modifier_profile = classic-pc, where Alt stays Alt): Alt+2 types ™, Alt+Shift+2 types €, and Alt+E then E types é (on a US source, which uses the us(mac) symbols). Applications then receive no Alt from these keys, so their own Alt shortcuts do not work; layout_level3 = right-alt in keyboard.conf gives the left key back as Alt.
  • Compose key. compose_key = right-alt in keyboard.conf (also right-ctrl, menu, caps-lock, scroll-lock, or off) sets the compose key of the system layouts. Unset, it keeps the one localed holds.
  • Dead keys and Compose sequences. Applications built on Cupertino’s own Wayland client (CupertinoKit apps) read the locale’s compose table (XCOMPOSEFILE, then ~/.XCompose, then the locale’s file), so layouts with dead keys such as us(intl) and de(deadkeys) type their characters. Other toolkits do their own compose handling.
  • Accents. Holding a letter key opens the accent picker, but only with accent_table set and only in applications with text input support.

Screenshots

KeysWhat happens
Super+Shift+3 (also Super+Shift+S)the whole screen
Super+Shift+4a selection
Super+Shift+5the toolbar
Super+Ctrl+Shift+3, Super+Ctrl+Shift+4the screen or a selection, to the clipboard

Files go to the Desktop folder unless ~/.config/cupertino/screenshot.conf sets location to documents, pictures, clipboard or a directory. The toolbar writes the file back. On the overlay, Escape cancels, Space switches to picking a window, the arrow keys make and move a selection (Alt with an arrow resizes it) and Return captures. The screenshot tool has no built-in video recorder. External recorders can use the ScreenCast portal: in OBS choose Screen Capture (PipeWire), then select a display or window. The OBS black-capture buffer-negotiation regression is fixed in fe28a392; the local recording verified desktop frames after replacing the portal. See Portals for scope and remaining limitations.

Apps that control the desktop

The first time an app asks to see your windows and their controls and use the pointer and keyboard, or to take pictures of the screen, you are asked, and your answer is remembered for that app in ~/.config/cupertino/desktop-control.conf. Settings > Privacy > Desktop Control and Settings > Privacy > Screen Capture list the apps that asked, each by the name of its app or, for a program that runs without a window of its own, by its file name and full path. Turning an app’s switch off stops it at once, even in the middle of what it is doing; turning it on allows it again. Forget removes the app, which then asks again the next time. The two pages are separate: an app can be allowed to take pictures of the screen and not to control the desktop. The file must be yours and writable by no one else; otherwise the pages say why and change nothing.

Electron apps (VS Code, Slack, Discord, Obsidian and others) show their own menus in the menu bar, on Wayland and through X11 alike, and keep no menu bar in their window. Clicks, shortcuts shown beside items, check and radio items and submenus the app fills only when they open all work as in any other app. Such an app hands its menus to the menu bar under a number of its own window instead of naming them for the window it shows, so the menu bar matches them to the window: on Wayland by the app’s process, through X11 by the window’s title as the X server holds it. A menu leaves the bar when the app removes it, quits or closes the window. An app that names its menus for its window, as later Electron releases are expected to, is shown those menus with no matching.

The in-window menu bar of all Electron apps comes back with ELECTRON_FORCE_WINDOW_MENU_BAR=1 in the environment they start with, for example a line ELECTRON_FORCE_WINDOW_MENU_BAR=1 in a file under ~/.config/environment.d/ before you log in; their menus then leave the menu bar, which shows its own File, Edit, View, Window and Help for them. Remove the line to return to menus in the menu bar.

Known gap: an Electron app on Wayland with several windows in one process gets each window’s menus by the order the windows were opened, which holds while every window has a menu; otherwise the menus of the window registered last show for all of its windows. Electron’s menus are usually the same for every window.

Show in Files from other apps

Other apps’ “Show in folder” commands open Files on the item’s folder with the item selected and scrolled into view: VS Code’s Reveal in File Explorer, Electron apps’ shell.showItemInFolder, a browser’s Show in folder for a download, and the portal’s Open Directory, which sandboxed apps use. Files answers the session bus name org.freedesktop.FileManager1:

  • ShowItems selects the items in a window on their folder. Items of one folder share a window, and a window that already shows that folder (with no search typed) is used; items of different folders get a window each. A folder named as an item is selected in its enclosing folder.
  • ShowFolders opens a window on each folder.
  • ShowItemProperties selects the items as ShowItems does; Files has no information window yet.

The app’s startup id raises the window, so it comes in front of the app that asked. An item that no longer exists is a notice; the others are still shown. When Files is not running, the bus starts it for the call (/usr/share/dbus-1/services/org.cupertino.Files.FileManager1.service), with no window of its own: it opens what the call asks for and exits when that window closes, or after 10 seconds when no call comes. When another file manager already holds the name, it keeps answering until it quits, and Files takes over then.

Title bars that apps draw

Apps that draw their own title bar (Electron windows with an overlay title bar, GTK header bars) look up their window buttons’ symbols in the icon theme. Cupertino’s icon theme, Cupertino in /usr/share/icons, draws window-close-symbolic, window-minimize-symbolic, window-maximize-symbolic and window-restore-symbolic and takes every other icon from Adwaita. Apps use it when the session’s icon theme is set to Cupertino; otherwise they keep Adwaita’s symbols.

Shortcuts apps use in the background

An app can ask for keyboard shortcuts that work while you use another app, such as a push-to-talk key in a call app or a quick-open key; Electron apps do so with globalShortcut, others through the desktop portal’s GlobalShortcuts. The first time an app asks, a window lists each shortcut with its keys and what it does, and asks Allow or Don’t Allow; Allow takes no click or key for half a second after the window shows, so a key you were typing cannot allow it. Your answer is remembered for the app with the keys you allowed: a later request for those keys binds them without asking, a request for a key you have not allowed asks again and lists only the new shortcuts, and an app you said no to is not asked again. Every shortcut can be read before Allow: a long list scrolls. Escape or closing the window answers no and remembers nothing. To be asked again, take the app’s line out of ~/.config/cupertino/global-shortcuts.conf (allow = <app id> <keys>… or deny = <app id>); your own comments in the file are kept. A desktop-control run cannot click or act in this window, nor in the screen-sharing and screenshot windows.

A shortcut gets its keys only when its key is no modifier (Shift, Control, Alt, Super, Caps Lock) and they hold ⌃, ⌥ or ⌘ (Control, Alt or Super) or are a function or media key, when the desktop does not use them itself (its own shortcuts, the console switches, the screen reader’s ⌘⌥S), and when no other app holds them already: the first app to bind a key keeps it. A shortcut that cannot have its keys is shown in the window with the reason and is not bound; the app is told which shortcuts it has. A shortcut whose keys the desktop takes later, through shortcuts.conf, loses them, and the app is told.

While a shortcut is bound, its key press and release go to the app that bound it and never to the app you are typing in. A shortcut on a symbol you type with Shift works with Shift held (Ctrl+plus is Ctrl+Shift+= on a US keyboard). Where the right Alt key is AltGr (layout_level3 = right-alt, none, or under modifier_profile = classic-pc), AltGr does not count as Alt: AltGr and a key types its symbol in the app you are typing in; where both Alt keys are Option (the default), they count as Alt. Shortcuts do nothing while the screen is locked, while an app holds all keys (a virtual machine or a remote desktop) and while the app switcher is open. They end when the app quits or closes them.

Saved passwords

Apps keep saved passwords and tokens in the keyring: gnome-keyring, which the packages install. Logging in with your password unlocks it, and logging out locks it again. After an automatic login, or after your password was changed with passwd, it stays locked: the first app that needs it opens a window that asks for the keyring’s password, and Cancel there refuses the app. Unlocking the lock screen with your password also unlocks the keyring. Logging in unlocks the keyring named login only. When an app has made another keyring the default one, that keyring would ask for its own password in every session, so Cupertino asks once whether to move its items into the login keyring: Move Items asks for that keyring’s password, copies its items and saves new passwords in the login keyring from then on (the other keyring is kept); Don’t Move is remembered, and you are not asked again.

There is no Cupertino window for saved passwords yet. In a terminal, secret-tool search --all ATTRIBUTE VALUE shows the matching items (with their secrets), secret-tool clear ATTRIBUTE VALUE deletes them, and the Seahorse app (“Passwords and Keys”, installed separately) lists and deletes them in a window. cupertino-sessiond’s README (“Secret Service”) has the details and the commands that list every item.

Not verified: none of this has been run in an installed session yet; the README lists the checks.

Logs and crash reasons

cupertino diagnose checks the GPU driver, the session, the portal, the services and the last crash in one go, and names the fix for what is wrong; cupertino --format json diagnose gives the same as JSON. cupertino diagnose events --since 24h lists the errors the desktop recorded, and cupertino diagnose export --output FILE writes one file for a bug report (Checking a machine).

FileHolds
~/.local/state/cupertino/session.logone line per session start and end: a normal end, the exit status, the signal that ended the compositor, or the watchdog. When the compositor ends with an error, the end line also has the reason: a panic on its main thread or a lost rendering context for which the server could not make a new renderer. A GPU reset that the server survives is one line of its own (see A GPU reset), and so is a session that has only a software renderer (see No GPU acceleration). An abort or a fault (SIGABRT, SIGSEGV) is named as the reason, and server.log has its backtrace, as it has a panic’s. Other signals leave no reason; the line names the signal.
~/.local/state/cupertino/server.logeverything the compositor logs, including the GPU, the driver, the kernel and any panic. The previous run is server.log.1. An error that stops the start is its last line, the server stopped: ....
~/cupertino-tty.logwhat the processes print when a checkout is started from a text console, including a start that fails before server.log opens.

RUST_LOG changes the log filter, and CUPERTINO_LOG_FILE moves server.log. After a panic, or a lost rendering context for which the server could not make a new renderer, the teardown may take 2 s, then the server exits.

A GPU reset

On a display, the server asks the render GPU whether it was reset before each round of frames, and a frame that fails with the context lost counts as a reset too. On a reset the server makes a new renderer for each card and draws again: the windows stay, the clients stay connected and nothing restarts. A driver without the robustness extension reports no reset, so only a frame that fails with the context lost starts this.

Each reset is one line in session.log:

<time> the GPU was reset: gpu=<card> reason=<who caused it>; <outcome>

The outcome is renderer remade, the clients stayed connected or renderer not remade (<error>), the session ends.

The limits: a fourth reset within 60 s, or a renderer that cannot be made, ends the session. The login screen comes back, as after any lost rendering context. A client’s buffer that the reset lost shows what the driver left in it until the client draws again.

Not verified on hardware: the new renderer has run only through the offscreen reset hook, not against a real reset.

To investigate a reset with an AI assistant:

  1. Run cupertino --format json diagnose --area crash. The crash.gpu_reset check is warn when session.log has a reset, with the facts resets, remade, last_time, last_gpu, last_reason and last_outcome.
  2. Copy the lines of ~/.local/state/cupertino/server.log around last_time (server.log.1 if the session has restarted since).
  3. Give both to an AI assistant, or to the driver’s bug tracker. Paste them by hand; no Cupertino service does this yet.

If it hangs

  • One application does not answer. While the desktop is in use, the compositor pings every application window once a second (a desktop nobody touches is not pinged; the first input pings at once). With no answer 2 s after a ping, the pointer over its window shows the busy cursor and the dock marks it Not Responding. Press Super+Alt+Escape, or use Force Quit in the menu bar. An application that does not answer is killed at once; any other gets a close request first and is killed 3 s later if it is still there.
  • A shell component fails (dock, menu bar, launcher and so on). Its host starts it again alone, after a restart time that grows from a quarter of a second to 8 seconds, and the host and the other components go on; five failures within a minute stop it until cupertino shell restart NAME. If the host itself fails, the compositor starts it again, at most once per second. A program that exits successfully stays stopped.
  • The compositor hangs. Ctrl+Alt+Backspace and Ctrl+Alt+F<n> need a live compositor. From another console or over ssh, pkill cupertino-server ends it. As a last resort, with sudo sysctl kernel.sysrq=1 set beforehand, Alt+SysRq+R, E, I returns the keyboard to the kernel and ends all processes. Save your work in other sessions first.
  • After a panic, an abort, a fault, or a lost rendering context with no new renderer. On a display the server first makes a new renderer and the windows stay (A GPU reset). The login screen comes back within seconds. session.log has the reason and server.log.1 (after the next login) the backtrace.

Known limits

The 2026-11-10 installed-session review and follow-up inspection recorded 32 interaction and presentation issues; at the 2026-11-12 recheck 31 remain open, 2 of them fixed in code and awaiting the installed-session check, and one is resolved by design. See Desktop quality and open issues for the complete list, evidence status and acceptance checks. In particular, menu pointer ownership, sidebar bounds, control panel readability and connectivity, Trash emptying, quick preview, input/cursor behavior and glass/scrollbar consistency are not accepted as finished. Newly installed applications also remain absent from the launcher until its process restarts (DQ-30); the backlog records the workaround. ChatGPT Desktop could not be moved by dragging through XWayland in the installed session, and launching it with --ozone-platform=wayland restored dragging; the move was not reproduced headless and awaits the installed-session check (DQ-33). Electron applications that draw their own titlebar, such as ChatGPT and Claude Desktop, keep it instead of Cupertino’s by design (DQ-31, closed). The backlog records the app-specific flags file and remaining checks. ChatGPT status-menu actions can also stop working because the menu bar retains obsolete action IDs (DQ-32). Some entries are maintainer reports still awaiting focused reproduction.

The server’s README has the full list under “Daily-driver known limits”. The ones to expect in a first week:

  • A real session on the NVIDIA driver with GDM has not been run yet, and explicit sync has not run on NVIDIA.
  • The portal backend serves the appearance settings, the file chooser, the app chooser, screen sharing, screenshots, colour picking and the shortcuts apps use in the background; every other portal goes to the GTK backend (Portals). A video call shares one display or one window at a time, without sound. A display you let an app share again without asking is listed in Settings > Privacy > Screen Sharing, where Forget removes it; a window is remembered only until the app quits. The screenshot portal asks for consent and retries a failed capture, and its colour picking takes the colour of the pixel you click.
  • The volume and mute keys change the default PipeWire output and the microphone mute key toggles the default input. With no PipeWire daemon, volume and mute fall back to the ALSA master mixer.
  • X11 apps run through xwayland-satellite. Scale 2 and the clipboard were checked in a virtual machine only. With monitors of different scales, every X11 window gets the smallest scale. Every window, an X11 one or one that draws its own title bar included, gets the same rounded corners, outline and shadow as Cupertino’s own windows; square corners an application draws are cut to that outline. A window an application draws transparent around a shape of its own (an overlay, a floating widget, a pill-shaped bar) is left as it draws it.
  • Settings > Appearance > Show scroll bars reaches applications of other toolkits. GTK 3 and GTK 4 applications on Wayland, and Chromium and Electron applications, follow a change at once: the portal serves GTK’s overlay-scrolling key and sets the same key in GSettings (the org.gnome.desktop.interface schema, which a GNOME session on the same account shares). GTK applications under X11 read it from gtk-3.0/settings.ini and gtk-4.0/settings.ini in ~/.config when they start; only that key is written there. Chromium and Electron show bars over the content only with their overlay scroll bar feature on: an application started from the dock, the launcher, the menu bar or Files gets --enable-features=OverlayScrollbar, and then follows GTK’s setting while it runs. Chromium keeps only the last --enable-features it is given, so that switch also lists the features its desktop entry enables and those of the flags file its launcher reads (such as ~/.config/chromium-flags.conf, electron-flags.conf or code-flags.conf); a --disable-features=OverlayScrollbar in either keeps the classic scroll bars. An application counts as Chromium or Electron when its program sits beside Chromium’s resources, or is a script whose exec line starts such a program with the launch’s arguments ("$@"), or a small program that names one by its full path. One started from a terminal, through xdg-open or as a Flatpak keeps classic scroll bars unless it is given that switch, in its own flags file for instance. Some older Chromium builds take the switch to mean bars over the content whatever the setting. Qt Widgets applications keep their style’s scroll bars: Qt has no desktop setting for them. Qt Quick controls show theirs only while the content scrolls.
  • An application that draws its own title bar puts its close, minimise and zoom buttons at the leading end, as Cupertino’s own windows do: GTK header bars, Chromium’s tab strip, Electron windows with a title bar overlay and Qt’s client-side decorations read the order from the portal (org.gnome.desktop.wm.preferences button-layout, close,minimize,maximize:). It is also set in GSettings and in the GTK settings files for GTK 3 on Wayland and GTK under X11. An application that places its own controls where the buttons go, as some Electron applications do in the top leading corner, can find them covered.
  • GSettings and the GTK settings files are your own and shared with other desktops on the account, so Cupertino writes overlay-scrolling, button-layout, gtk-overlay-scrolling and gtk-decoration-layout the first time it starts, and afterwards only when its own value changes or the key still holds what Cupertino last wrote there (kept in ~/.local/state/cupertino/toolkit-settings). A value you set yourself since, with gsettings, GNOME’s settings or in the file, stays until you change Show scroll bars, which writes the scroll bar key again; your button order stays for good. A settings file keeps its permissions. The portal still serves the desktop’s button order to applications that ask it.
  • The ISO and installer ship foot. Other installations need one of the terminals listed under keyboard shortcuts.
  • A server crash ends the session; windows are not reopened. Applications are reopened only after a confirmed log out, restart or shut down with the checkbox on.

To report a bug, see Trying Cupertino.

Install Cupertino from a USB stick

This page takes you from the ISO file to your first login. The install erases one whole disk and installs Arch Linux with Cupertino as the only desktop. There is no dual boot. Back up your data before you start; this page has no commands for that.

The live ISO has VM boot evidence. The full real-hardware install, login and recovery acceptance remains open. The commands here match the ISO workflow (.github/workflows/iso.yml) and the profile in packaging/iso; where a result is what the code does and not something observed, the page says so.

You need:

  • a UEFI machine (the image has no BIOS boot mode),
  • a USB stick larger than the ISO (about 2.1 GiB; ls -l on the file gives its exact size, and the .sha256 file next to it checks it),
  • a network connection during the install, because archinstall downloads the Arch packages.

Build or download the image

The ISO workflow (.github/workflows/iso.yml) builds the image from a commit: it builds the Arch packages of that commit and cupertino-keyring with the public release key, puts them in a [cupertino] repository inside the image (/opt/cupertino-repo) and runs mkarchiso on packaging/iso. A final release attaches the image to its draft release; the workflow can also be run by hand on any commit. It writes three files:

FileContent
cupertino-YYYY.MM.DD-COMMIT-x86_64.isoThe live and install image. The date is the commit date in UTC.
cupertino-YYYY.MM.DD-COMMIT-x86_64.iso.sha256The output of sha256sum for the ISO.
cupertino-YYYY.MM.DD-COMMIT-x86_64.iso.manifestThe commit, the archiso version, the Cupertino packages and every installed package with its version.

The release workflow signs the ISO’s .sha256 file and attaches .sha256.sig to the draft release. Release-candidate tags skip the ISO job. The ISO itself does not carry a detached signature.

The expected primary release-key fingerprint is 25ACA804115FFB01E53B35272FC4E6B0B511CA1A, also stored in packaging/keyring/release-key.fpr. The public key is not yet committed or attached by the release workflow. Obtain the public key from the maintainer and compare its complete primary fingerprint before trusting it. A checksum without a verified signature does not authenticate a download.

With that public key imported into a separate GnuPG keyring, verify the signature on the exact checksum file:

gpg --status-fd 1 --verify cupertino-YYYY.MM.DD-COMMIT-x86_64.iso.sha256.sig cupertino-YYYY.MM.DD-COMMIT-x86_64.iso.sha256

Require exit status 0 and a VALIDSIG status line whose last field equals the primary fingerprint above. A trust warning after a fresh import is expected; a missing VALIDSIG, a different fingerprint or a signature error means stop. Then check the ISO bytes in the folder that holds the files:

sha256sum -c cupertino-*.iso.sha256

It prints OK for the ISO.

Write the ISO to the stick

Find the stick. You need the whole disk (sdX), not a partition (sdX1). Check the model and size:

lsblk -o NAME,MODEL,SIZE,TRAN

Write the image. This erases the stick:

sudo dd if=cupertino-*.iso of=/dev/sdX bs=4M status=progress conv=fsync

Check the stick against the image. No output means they match:

sudo cmp -n "$(stat -c %s cupertino-*.iso)" cupertino-*.iso /dev/sdX

Boot the stick

  1. In the firmware settings, set UEFI mode and turn Secure Boot off. The boot loader and the drivers are not signed, so the image does not boot with Secure Boot on.
  2. Open the firmware’s boot menu (the key depends on the maker) and pick the stick.
  3. The boot menu has one entry, “Cupertino live (x86_64, UEFI)”, and starts it after 3 seconds. The kernel command line sets nvidia-drm.modeset=1 and nvidia-drm.fbdev=1, and the image ships nvidia-open.

The live session starts straight into Cupertino as the user live, with no password and no login screen. Ctrl+Alt+F2 gives a text login on tty2: log in as root with no password (the live account is locked). The live system runs the same services as the installed one: NetworkManager (wired networks connect on their own; Wi-Fi from Settings or nmtui), BlueZ for Bluetooth, cupertino-powerd, systemd-resolved and systemd-timesyncd.

Install

The image ships archinstall for the Arch part and the Cupertino packages in its [cupertino] repository. Not yet observed on real hardware: the steps below are what the image and the packages provide.

  1. In a text login on tty2 (Ctrl+Alt+F2, as root), run archinstall. Choose the disk, systemd-boot as the boot loader, an account with administrator rights (sudo), the Minimal profile with no desktop and no display manager, PipeWire for audio, NetworkManager for the network, and on an NVIDIA card from the Turing generation on the open NVIDIA driver. Add mesa foot xwayland-satellite bluez as additional packages. Leave archinstall without rebooting.

  2. Mount the new system at /mnt if archinstall left it unmounted (the root partition first, then the boot partition at /mnt/boot), and install Cupertino from the image’s repository:

    pacstrap -C /etc/pacman.conf /mnt cupertino cupertino-data cupertino-keyring
    arch-chroot /mnt pacman-key --populate cupertino
    arch-chroot /mnt systemctl enable cupertino-login.service bluetooth.service
    arch-chroot /mnt systemctl add-wants multi-user.target cupertino-powerd.service
    

    cupertino-login.service is the display manager on tty1; tty2 to tty6 keep their text logins. cupertino-powerd answers for the power service, so do not install upower. cupertino-netd and cupertino-btd are installed but stay disabled: NetworkManager and BlueZ own the network and Bluetooth.

  3. Remove the stick and reboot.

The new system’s pacman.conf has no [cupertino] section: the image’s repository stays on the stick. Updates come from a signed repository or a build of your own (Signed updates).

First login

Boot from the disk, not the stick. The boot loader starts the system, and cupertino-login starts on tty1. Log in with the account you created. For shortcuts, logs and the known limits, see Using Cupertino every day. The installed system starts the session from cupertino-login; the session-chooser steps there are for machines that use GDM.

When the session does not start

ProblemWhat to do
The login screen fails repeatedlyAfter 5 failures in 30 seconds, cupertino-sessiond stops restarting the login screen. Ctrl+Alt+F2 to Ctrl+Alt+F6 give a text login.
The login screen is brokenAt the boot menu, press e on the entry and add systemd.unit=multi-user.target to the kernel command line. tty1 shows a text login.
No network in a text loginRun nmtui.
A bad package updatesudo pacman -U /var/cache/pacman/pkg/NAME-OLDVERSION-*.pkg.tar.zst

Known limits

  • UEFI only, with Secure Boot off. One disk, erased whole. No dual boot.
  • No disk encryption.
  • One kernel (linux). A kernel or driver update that breaks booting has no documented repair here.
  • Not yet observed on real hardware: the live session, the install, the first login and the NVIDIA setup.

The cupertino command

cupertino is the command-line entry point of the desktop. It is built from the cupertino-cli crate (crates/cupertino-cli) and installed as /usr/bin/cupertino by the cupertino package, with its completions for bash, zsh and fish and its manual pages (man cupertino, and man cupertino-GROUP for each command group).

This page describes the command as it is on main. For what the machine checks look for, see Checking a machine.

Usage

cupertino                                   # the help
cupertino help [COMMAND]                    # the help of the commands under COMMAND
cupertino --version                         # this command's version and commit
cupertino version                           # the version of every part of the desktop
cupertino diagnose [--area AREA]... [--strict]
cupertino desktop start --backend nested|headless|tty [--size WxH] [--scale S] [--spawn CMD]...
cupertino appearance assets check DIR       # read the asset pack in DIR and report its problems
cupertino --format jsonl diagnose           # JSON lines: one record per line
cupertino diagnose events --since 24h       # the diagnostic events of the last day
cupertino diagnose events --follow          # and the new ones, until Ctrl-C
cupertino diagnose events clear --yes       # delete the stored events
cupertino diagnose export --output FILE     # one JSON file for a bug report
cupertino sdk info                          # the installed C SDK: header, library, links, pkg-config file, package
cupertino sdk check                         # build and run a probe against it with /usr/bin/cc
cupertino sdk new --lang c demo             # a C project in ./demo; `make -C demo` builds it
cupertino shell list                        # the shell processes of this session and the program each runs
cupertino shell restart dock                # end the dock and start it again at once
cupertino shell use-installed dock          # take the dock's development build away and restart it
cupertino shell crash osd --at paint        # make a development build's OSD panic as it next draws
sudo cupertino dev-folder enable            # once: let shell processes start from ~/.local/lib/cupertino/dev
sudo cupertino dev-folder disable           # stop that

--format takes human (the default), json or jsonl and may stand anywhere on the line before a --. Any other value, or none, is a usage error. After --, every word belongs to the command. cupertino help COMMAND for a whole command also prints its description and examples, and marks a preview or deprecated command.

Commands

CommandWhat it does
appearance assets check DIRReads the asset pack in DIR (it needs a manifest.json) the way the desktop processes do. It reports the pack’s problems and what provides each logical name, the pack or the built-in fallback. A pack that cannot be read exits with 5. It replaces cupertino-assets check DIR.
diagnoseChecks the GPU and its driver, the session, the portals, the services, the development folder’s builds, how the last sessions ended, the logs and the errors the desktop recorded in the last day; --area picks areas (repeatable), in the order gpu, session, portals, services, shell, crash, logs, events. It exits 0 once the checks ran; with --strict a failed check exits with 5 (checks_failed). In the json form data is the report (Checking a machine); in jsonl each check is a check event and the result counts the checks of each status.
diagnose events [--since DURATION|TIME] [--component NAME]... [--id PREFIX]... [--severity LEVEL] [--follow]Prints the diagnostic events of the user store, session.log and the system journal, merged in time order, one line each (an event record whose data is the cupertino.diag.v1 record in the JSON forms); the final data lists the sources with their status (ok, empty, denied, unavailable, corrupt) and the counts. --follow goes on with the new events until stopped.
diagnose events clear --yesDeletes the stored events and keeps the salt; without --yes it fails with confirmation_required (exit 2).
diagnose export --output FILE [--include-logs] [--since DURATION|TIME]Writes one JSON document, mode 0600, with the versions, the diagnostics report, the events and the sources, and with --include-logs the scrubbed server.log, server.log.1 and session.log. A file that exists is never overwritten (file_exists, exit 5).
desktop startStarts the compositor and stays attached to it. --backend nested runs it in a window of the current desktop (it needs WAYLAND_DISPLAY or DISPLAY), headless offscreen; both need XDG_RUNTIME_DIR and take --size, --scale and --spawn. --backend tty becomes cupertino-server --session, the session of a text console, and refuses to run inside a graphical session (4, inside_graphical_session) or from anything but a text console (3, not_a_vt). Events: starting, ready (with the compositor’s WAYLAND_DISPLAY), exited (its status or signal, and how long it ran). Ctrl-C or SIGTERM ask the compositor to end with SIGTERM; one still running 10 seconds later is killed, and the command exits 0. A compositor that fails, or ends before it is ready, exits the command with 3 (server_failed).
sdk info [--require] [--root DIR]Reports the C SDK of the cupertino-kit package: the header /usr/include/cupertinokit-1/cupertinokit.h and its ABI version, the library behind libcupertinokit.so.1 and its soname, the link libcupertinokit.so, cupertinokit.pc and its Version, and the package’s build record. Each part is ok, not_installed or unreadable, and files that disagree are listed in problems. It exits 0 whatever it finds; with --require a missing part exits with 3 (sdk_not_installed) and an unreadable or inconsistent SDK with 5 (sdk_invalid). --root reads an SDK installed under another directory.
sdk check [--root DIR]Compiles a probe against the SDK with /usr/bin/cc and the flags of /usr/bin/pkg-config (never PATH), runs it, and reports the steps compiler, pkg_config, compile and run as step events. Without a compiler or pkg-config it exits with 3 (no_compiler, no_pkg_config), and with 3 (sdk_not_installed) when pkg-config finds no cupertinokit. A compile error exits with 5 (compile_failed, the compiler’s messages in data.stderr), as do a header and library of different versions (abi_mismatch) and a probe that fails (probe_failed). In the json form data is the report.
sdk new --lang c|rust NAME [--dir DIR] [--source CHECKOUT]Preview. Writes a project into NAME (or DIR): for C a main.c that runs headless, a Makefile that takes its flags from pkg-config cupertinokit, NAME.desktop and a README; for Rust a Cargo.toml on the cupertino-kit crate of this release (the git tag v<version>, or with --source the crates of a Cupertino checkout by path, for offline work or a release whose tag is not published yet), a src/main.rs with a window, NAME.desktop and a README. NAME is the app id: dot-separated elements of letters, digits, - and _, none starting with a digit, and not starting with - (else 2, invalid_name); --source that is not a checkout, or given for C, exits with 2 (invalid_value). It never replaces a file: a directory that is not empty exits with 5 (directory_not_empty), one that cannot be written with 4 (not_writable).
shell listPreview. Lists the processes the server of the current session supervises (the shell host host, the host host-NAME a component runs in alone, and the built-in portal, prompts, login and desktop-control), in start order, as data.processes, from ListShellProcesses of its org.cupertino.Session1 interface on the session bus: name, state (running, stopping, waiting, stopped), and while it runs pid, started (seconds since 1970), start_ticks (field 22 of /proc/PID/stat, which tells a process from a later one with the same pid), program and from_dev_folder; installed is the installed program and dev_program the development folder’s file the process starts when it is there (null when the folder does not apply; for host-NAME it is the folder’s cupertino-shell). data.components lists every component of the server’s component table, in its order, from ListShellComponents: name, runs_in (host, the shared host; host-NAME, a host of its own; none, no host runs it; off, the session does not run it), from_dev_folder (its host of its own starts from the development folder), connected (a host holds its connection to the server), and connection (the unique bus name the server’s ComponentOf gives it) with pid of the process that holds that connection, both null while it has none. dev_program_older_than_installed is true when that file is there and was last modified before the installed program (a package’s files keep their build time), which the server no longer starts in place of the newer package; SOURCE then reads development folder (older than installed), or names the other source with (older build in development folder). It is false when either file is missing or its times cannot be read or are equal, and when the installed program is not an absolute path. Without a session bus it exits with 3 (no_session_bus), without a server on it with 3 (no_server), with a server that has no such method with 8 (not_supported); a caller the server refuses exits with 4 (refused): only an unsandboxed process of the session’s own user may call it.
shell restart NAMEPreview. Asks the server to restart NAME with RestartShellProcess. A component (a name of data.components) is restarted where it runs: its host stops it and starts it again, or, when the development folder names it or the configuration runs it alone, the server starts its host again from the folder’s cupertino-shell when that file passes the checks, else from the installed one; the other components go on. Any other process is ended (SIGTERM, then SIGKILL 5 seconds later) and started again at once whatever its exit status. It prints the host’s or the process’s record once the component is ready or the process runs, with the fields of shell list, under the name given. An unknown name exits with 2 (unknown_process), a process that ended and could not start again with 6 (not_started; the server tries again after its throttle).
shell use-installed NAMEPreview. Removes the dev_program file of the process NAME, or of host-NAME when NAME is a component that runs from the folder, from the development folder when it is there (4, cannot_remove, when it cannot), then restarts NAME as shell restart does, so it runs in the installed host or program; data.removed names the file removed or is null. A component in the shared host and a process the folder does not apply to exit with 5 (no_dev_program) without a restart; a name that is neither exits with 2 (unknown_process).
shell crash NAME [--at dispatch|paint|helper]Preview, development builds of cupertino-shell only. Finds the component’s own session bus connection (the unique name ComponentOf of org.cupertino.Session1 answers with NAME) and calls Crash of org.cupertino.ShellComponentDebug1 on it: the component panics as its loop next dispatches (dispatch, the default), as it next paints (paint) or on a helper thread (helper), and its host starts it again as for any failure. A component with no accepted bus connection exits with 2 (unknown_component), one in a release build of the host with 8 (not_development_build).
dev-folder enable [--folder PATH] [--components NAME,...]Preview, as root. Sets the dev_folder key of /etc/cupertino/compositor.json (every other key keeps its text; the file is replaced atomically and keeps its mode) to the folder, --folder or ~/.local/lib/cupertino/dev of the user who ran sudo (SUDO_UID, SUDO_GID), and the components allowed to run from it, --components or every component the file’s shell section runs (its components less its off) except agent, which always runs in the installed host. A component the folder names runs in a host of its own, started from <folder>/cupertino-shell. A missing folder is created as that user with mode 0700. Not root exits with 4 (not_root), without SUDO_UID and SUDO_GID with 2 (no_invoking_user); a name that is not such a component (unknown_component, ineligible_component), a folder of another user or that others can write (unsafe_folder), and a file that is not a JSON object or whose shell section has no components list (invalid_system_config, no_shell_list) exit with 5, a missing file with 3 (no_system_config).
dev-folder disablePreview, as root. Removes the dev_folder key, keeping everything else; the folder and its files stay. Without the key it changes nothing.
versionOne entry per part: cli, runtime-package, data-package, compositor-running, c-abi, theme, asset-pack, the output schemas, os-image and kernel, each with name, version, source, status (ok, not_installed, unreadable, not_running), detail and commit. A part that is not there never fails the command.
completions SHELLPrints the completion script of bash, zsh or fish, generated from the registry.
dev layers [--root DIR] [--graph]Preview. Checks that the crates of a source checkout follow the layer rules, as cargo run -p cupertino-layers does. Outside a checkout it exits with 3 (no_checkout), without Cargo with 3 (no_cargo), on problems with 5 (layer_violations, each problem in data.problems).
dev manual DIRPreview. Writes the manual pages into DIR, dated by SOURCE_DATE_EPOCH or a fixed date, so two runs write the same bytes.

Checking a machine describes the events, their limits, what they never contain and journal access.

The registry that holds this list is REGISTRY in crates/cupertino-cli/src/lib.rs. The help, the JSON command tree, the dispatch, the completions and the manual pages all come from it.

desktop start runs CUPERTINO_SERVER when it is set (for development), else the cupertino-server installed beside cupertino, else /usr/bin/cupertino-server; it never searches PATH. The compositor says it is ready on the descriptor --ready-fd names, and while it runs it describes itself in $XDG_RUNTIME_DIR/cupertino/server-NAME.json, which cupertino version reads for the compositor of WAYLAND_DISPLAY.

Output

With --format human, the output goes to standard output, an error goes to standard error as cupertino: MESSAGE, and a warning as cupertino: warning: MESSAGE.

With --format json, one line goes to standard output, on success and on failure:

{"schema":"cupertino.cli.v1","command":"version","request_id":"1f3a-…","ok":true,"data":{"cli":"0.1.0","commit":"4089d615b68e…"}}
{"schema":"cupertino.cli.v1","command":"appearance","request_id":"1f3b-…","ok":false,"error":{"kind":"invalid_usage","code":"missing_subcommand","message":"…"}}

request_id is the process id and the time, in hexadecimal. code is a stable identifier within its kind; message is for people and can change. A failure may carry data beside error when the command has more to say, as dev layers does with its problems.

With --format jsonl, standard output carries JSON lines with the schema cupertino.cli.stream.v1. Every line is one object that starts with schema, command, request_id, seq and type. seq counts the lines from 0 without a gap. The type is one of:

typeOther fieldsMeaning
eventevent, dataSomething the command reports while it runs. event is a snake_case name that stays the same for the command.
errorerror: {kind, code, message}A problem the command continued past.
resultdataThe command’s result: the same object the JSON envelope’s data holds.
endok, exit_code, error when ok is false, reasonThe last line, always exactly one. reason is stopped when a stop ended a command that runs until stopped.
{"schema":"cupertino.cli.stream.v1","command":"version","request_id":"1f3c-…","seq":0,"type":"result","data":{"components":[…]}}
{"schema":"cupertino.cli.stream.v1","command":"version","request_id":"1f3c-…","seq":1,"type":"end","ok":true,"exit_code":0}

A command that computes its whole result prints result and end. A usage error found before the command starts prints end alone. A failed command prints end with its error and no result. In the json and jsonl forms nothing goes to standard error. desktop start --backend tty prints starting and then becomes the session, so no end follows it.

A streaming command reports events while it runs. In the human form each event prints one line as it happens. In the json form the envelope comes at the end, and its data adds events ([{event, data}]) and warnings ([{kind, code, message}]) to the command’s own fields. A command whose result already holds what its events said, such as a report (diagnose, dev layers), keeps its own data in the json form and adds warnings only when there are some.

When the reader of standard output goes away, as in cupertino --format jsonl help | head -1, the command stops, exits with 0 and writes nothing to standard error. Any other write error, such as a full disk, exits with 6 (temporary, code output_failed); in the human form one line on standard error says why.

While a streaming command runs, Ctrl-C (SIGINT) and SIGTERM ask it to stop, and a second one of either ends it at once. A command that runs until stopped then ends with end {"ok": true, "exit_code": 0, "reason": "stopped"}. A command with a finite amount of work ends with temporary, code interrupted, exit code 6.

Exit codes

Codeerror.kindMeaning
0Success; also a closed standard output, and a command that runs until stopped when a stop ends it.
2invalid_usageThe command line is not valid: an unknown command or option, or a missing or wrong value; also a command that needs a confirmation it did not get (confirmation_required).
3unavailableWhat the command needs is not there or not running: no checkout or no Cargo for dev layers, no display, runtime directory, compositor or text console for desktop start, or a compositor that failed; no session bus or no server on it for shell (no_session_bus, no_server), no system configuration for dev-folder (no_system_config); the C SDK or the compiler for sdk info --require and sdk check (sdk_not_installed, no_compiler, no_pkg_config), a tool sdk check cannot start (tool_failed), or a working directory that cannot be read (no_working_directory).
4deniedThe caller is not allowed to do this here: desktop start --backend tty inside a graphical session (inside_graphical_session), sdk new into a directory the caller cannot write (not_writable), a shell command the server refuses (refused) or a development file that cannot be removed (cannot_remove), dev-folder without root (not_root), or a development folder its user cannot create (cannot_create_folder).
5validationWhat the command checked or read is not valid: a pack that cannot be read (pack_unreadable, manifest_invalid, font_invalid), layer problems (layer_violations, metadata_failed), a failed check with diagnose --strict (checks_failed), an export file that exists (file_exists), an event store that cannot be cleared (store_unavailable, no_home), an inconsistent C SDK or a probe that does not build or run against it (sdk_invalid, compile_failed, abi_mismatch, probe_failed), a directory sdk new cannot use (directory_not_empty, not_a_directory), a process the development folder does not apply to (no_dev_program), or what dev-folder enable refuses (unknown_component, ineligible_component, no_eligible_component, unsafe_folder, invalid_system_config, no_shell_list).
6temporaryA problem that may pass: output that cannot be written (output_failed), a system configuration dev-folder cannot replace (write_failed), a shell process that did not start again after shell restart (not_started) or a server that did not answer in time (no_answer), manual pages, an export file or files of sdk new or sdk check that cannot be written (write_failed), a compiler or probe that does not finish in time (timed_out), or a streaming command stopped before it finished (interrupted).
7transaction_failedA system or package transaction failed. Reserved.
8unsupportedThis release or this system does not do what was asked: the command groups kept for a later release, system and ai, answer not_in_this_release; a running server older than the shell commands answers not_supported.

Code 7 is reserved: it keeps its meaning for the commands to come, and no command of this release ends with it.

Compatibility

Every command is stable, preview or deprecated; cupertino help marks the last two, and the JSON help has a stability field.

  • Within cupertino.cli.v1 and cupertino.cli.stream.v1, a stable command’s options, kind and code values, exit codes, data fields, record types and event names are only added to. Nothing is renamed or removed.
  • Consumers ignore fields and event names they do not know.
  • A change that is not additive raises the schema to cupertino.cli.v2 or cupertino.cli.stream.v2.
  • A preview command may change or go away in any release. Every dev command is a preview.
  • A stable command is removed only after one minor release as deprecated. In that release it still works, prints a warning on standard error in the human form (an error record with kind unsupported and code deprecated in JSON lines), and this page names what replaces it.
  • The group names system and ai are reserved for later releases.

The JSON help, cupertino --format json help, lists every command with path, summary, args (each with name, help, kind, values, repeat and hint), stability, streams, description and examples.

The programs it replaces

cupertino-assets check still works as before. In the human form it prints one line on standard error naming the command that replaces it (cupertino appearance assets check). It will be removed in a later release.

Checking a machine with cupertino diagnose

cupertino diagnose checks this machine and the session it runs in for what Cupertino needs: the GPU and its driver, the session, the desktop portal, the services, the development folder’s build of the shell host, how the last sessions ended, where the logs are, and the errors the desktop recorded in the last day. It changes nothing and opens no device. It reads sysfs, installed files, the session’s logs, the diagnostic events and the states of systemd units. It runs as your user, from the session or from a text console; the checks that need a session are skipped outside one.

This page describes the checks as they are on main today. diagnose is a group of the cupertino command; the same group reads the diagnostic events with cupertino diagnose events and writes a bug report file with cupertino diagnose export.

Usage

cupertino diagnose                                   # every check, as text
cupertino --format json diagnose                     # the report as one JSON envelope; data is the report below
cupertino --format jsonl diagnose                    # each check as a JSON line, then the counts of each status
cupertino diagnose --area gpu --area crash
cupertino diagnose --strict                          # exit 5 when a check fails
OptionMeaning
--area AREARun only this area. Repeat it for more. AREA is gpu, session, portals, services, shell, crash, logs or events. With no --area, every area runs, in that order.
--strictExit 5 (checks_failed) when a check fails.

Exit codes

The exit codes are those of the cupertino command:

CodeMeaning
0The checks ran. Without --strict, a failed check does not change the exit code.
2The command line was wrong (invalid_usage): an unknown option, or --area with a missing or unknown name.
5With --strict, a check failed (checks_failed).

A script reads each check’s status from the JSON form.

Text output

One line for each check: the status (ok, warn, FAIL or skip), the check id and a one-line summary. Facts and the fix follow, indented. This is the output from the machine this page was checked on, a session-less text run with the NVIDIA driver (it shows what the format looks like, not what your machine will print):

ok    gpu.driver          the primary GPU uses the nvidia driver
                          driver: nvidia
                          note: primary GPU card1 uses the nvidia driver
skip  session.logind      not run from a logind session
warn  portals.conf        no cupertino-portals.conf: xdg-desktop-portal picks the backends on its own
                          fix: reinstall the cupertino package

JSON output

In cupertino --format json diagnose the envelope’s data is the report:

{
  "schema": 1,
  "checks": [
    {
      "id": "gpu.driver",
      "area": "gpu",
      "status": "ok",
      "summary": "the primary GPU uses the nvidia driver",
      "facts": [{ "key": "driver", "value": "nvidia" }]
    }
  ]
}
FieldContent
schemaThe version of the JSON form, 1 today. It changes when a field is removed or changes meaning.
checks[].idA stable dotted name such as gpu.driver.
checks[].areagpu, session, portals, services, shell, crash, logs or events. A new area may be added within schema 1.
checks[].statusskip, ok, warn or fail.
checks[].summaryOne line for a person.
checks[].factsA list of key and value pairs. Left out when empty. A key can repeat (note, also).
checks[].fixWhat to do when the status is warn or fail. Left out when there is none.

skip means there was nothing to check: not in a session, or the tool the check needs is missing.

The checks

IdWhat it checks
gpu.driverThe primary GPU’s driver, and what it needs before a compositor takes the display. fail for a problem (for example nvidia-drm without modeset=1, or no GPU), warn for a warning (for example no NVIDIA GBM backend, or no driver bound).
gpu.rendererWhether the last session, or the one running, drew with a software renderer, from its line in session.log. warn when it did, ok otherwise, skip without a session.log. Facts: time and gpu. The fix says to install the GPU’s Mesa driver or to give a virtual machine a GPU with 3D.
gpu.client_renderersWhich renderer every running toolkit process draws with, from the record each writes to $XDG_RUNTIME_DIR/cupertino/renderers/<pid> (program, renderer, reason); records of processes that ended are left out. warn when a process draws on the CPU because the GPU failed it (no device, a software rasterizer, no dmabuf feedback or allocator, three context losses within a minute), ok otherwise, skip when no running process has drawn a window. Facts: one process per process, <program> (<pid>): <renderer>, <reason>.
session.logindlogind’s record of the session in XDG_SESSION_ID; skip when there is none.
session.desktopXDG_CURRENT_DESKTOP names Cupertino; skip otherwise.
session.waylandThe compositor answers on WAYLAND_DISPLAY. fail when nothing answers or XDG_RUNTIME_DIR is not set.
portals.backendcupertino.portal is installed and lists ScreenCast; warn otherwise.
portals.confThe first cupertino-portals.conf that xdg-desktop-portal reads sends ScreenCast to cupertino; warn otherwise.
portals.servicexdg-desktop-portal.service (user) is active. Runs only in a session.
services.login, services.network, services.power, services.bluetoothThe system units cupertino-login, cupertino-netd, cupertino-powerd and cupertino-btd.
services.session_target, services.pipewireThe user units cupertino-session.target and pipewire.service. Run only in a session.
shell.dev_folderThe build of the shell host in the development folder that /etc/cupertino/compositor.json declares (dev_folder), for each component the folder names that the session runs (all but agent). warn when the folder’s cupertino-shell was last modified before the installed one: the installed package was built after the build was copied (its files keep their build time), and the server starts the installed host instead of the older build. The fix names cupertino shell use-installed NAME for each component. ok otherwise, skip without the file or the key. Facts: folder, one older per such build and one build per other build. It needs no session or running server.
crash.gpu_resetThe GPU resets the server recorded in session.log. warn when there was one, ok when there was none. Facts: resets, remade (how many ended with a new renderer, as N of M), last_time, last_gpu, last_reason and last_outcome. The fix says how to investigate: give the JSON form and the server.log lines of that time to an AI assistant or the driver’s bug tracker (see A GPU reset).
crash.lastHow the last session in session.log ended. warn when it was not a normal end or a stop by the session. Facts name how many ended badly, the last bad end, and the first panic or fatal-signal line of server.log and server.log.1.
logs.pathsWhere session.log, server.log and server.log.1 are, with their sizes, and the journal command for the login unit.
events.recentThe diagnostic events of the last 24 hours. warn when there were error or fatal events, with the facts error and fatal (the counts), one event per id (server.gpu.reset: 2 error, the last at …, worst first) and one source per source (journal: denied); the fix names cupertino diagnose events --since 24h. ok otherwise, skip when no source can be read.

For a unit check, the status follows the unit’s state: ok when active, fail when failed, warn when inactive, not installed or in another state, and skip when systemd cannot be asked. The fix names systemctl status and journalctl for the unit, or says to install the cupertino package.

services.network and services.bluetooth also give ok when cupertino-netd or cupertino-btd is not running, whatever its unit file state (static, indirect, disabled, masked or enabled), while NetworkManager.service or bluetooth.service is active or enabled, because that service does the same job. The summary then reads ... is inactive (static): managed by NetworkManager (or BlueZ). They warn only when neither the Cupertino daemon nor that service runs. A machine installed from the USB image is set up this way. BlueZ may be enabled but stopped on a machine without a Bluetooth adapter, and that still counts.

Known limits

  • The portal checks read installed files and the user service. They do not call the backend on the bus.
  • crash.last reads the logs of the user who runs the command; another user’s sessions are not seen.
  • Only the primary GPU is checked, not the second GPU of a hybrid machine.

Diagnostic events

Every Cupertino process records a diagnostic event beside a failure’s log line: what failed, where, and in which build. Events stay on this machine; nothing is uploaded.

The record

Each event is one JSON object on one line, with the schema cupertino.diag.v1 and its fields in this order:

FieldValue
schema"cupertino.diag.v1"
timeRFC 3339 in UTC with milliseconds, 2026-11-09T14:03:27.512Z
boot_idthe kernel’s boot id, or null
sessionXDG_SESSION_ID, or null
component, version, committhe program’s name, its package version and the source commit, or null for an unknown commit
pidthe process id
idstable and dotted, area.subject.what, for example server.gpu.reset
severityinfo, warn, error or fatal
messagea fixed text chosen by the code, never made from inputs
fieldsthe event’s typed values, already reduced by the redaction policy
sourcethe crate and the file’s name with the line, cupertino-server:gpu_reset.rs:120
redactedthe keys of the fields the policy removed or rewrote
counthow many events of this id the process has recorded
suppressedon a rate-limit summary, how many events of this id were not written in its window; 0 otherwise
truncatedpresent and true when the event was longer than 4 KiB and lost field text or fields

Readers ignore fields they do not know. A change that is not additive raises the schema to cupertino.diag.v2.

Where events are kept

  • Your own processes (the compositor, the shell, apps, the portal, the polkit agent) write to a store in $XDG_STATE_HOME/cupertino/events/, else ~/.local/state/cupertino/events/. The directory is mode 0700 and its files 0600; a directory that is a symbolic link, belongs to someone else or that others may write is refused. Segments are events-<boot>-<seq>.jsonl; lock is the lock every writer holds, and salt keys the hashes.
  • System services (cupertino-sessiond, cupertino-netd, cupertino-btd, cupertino-powerd) write to the system journal. Each entry has CUPERTINO_DIAG_SCHEMA=1, CUPERTINO_DIAG_ID, CUPERTINO_DIAG_SEVERITY and the whole line in CUPERTINO_DIAG_JSON, so journalctl CUPERTINO_DIAG_SCHEMA=1 finds them.
  • Session starts and ends come from session.log, which the session (cupertino-server --session) writes; see below.

Limits

LimitValue
One store segment1 MiB; the next line that would pass it opens the next segment
The whole store8 MiB; the oldest segments are deleted first
Age14 days after a segment’s last write
One event4 KiB; a longer one has its text fields cut to 256 characters, then fields dropped, and truncated: true
The memory ring of each processthe last 256 events or 256 KiB
Rate10 events per id per 10 s; the rest are counted and written as one summary with suppressed with the first event after the window closes, or when the process ends

When the store cannot be written (a read-only file system, a full disk, a refused directory), events stay in the memory ring, one warning per reason goes to standard error, and an event says why once the store works again.

What diagnostic events never contain

Every value is reduced before it is written, so nothing below reaches the ring, the store or the journal.

ClassKept as
Passwords, tokens, keys, cookies, Authorization values, the text of an authentication conversation"[redacted]"
Typed text, the clipboard, window titles, notification bodies, searches, file names a person chose, URLs"[redacted]"
A path under the home directory~ and the desktop’s own .local/state/cupertino/… and .config/cupertino/… paths as they are; anything else ~/…#<hash>, the salted hash of its basename
A path under /usr, /etc, /run, /dev, /sys or /procthe path, with user and host names replaced
Any other path (another home, /tmp, removable media, a relative path)/home/…#<hash>, /root/…#<hash> or …#<hash>
IP, MAC and Bluetooth addresses, SSIDs, device names<kind>#<hash>: ip#, mac#, bluetooth#, ssid#, device#
User and host names"[user]", "[host]"
App ids, component and unit names, error kinds, errno names, interfaces and methods, GPU vendor, driver and PCI ids, connector and output namesas they are
Counts, numbers, durations, flagsas they are

A hash is 8 hexadecimal digits keyed by the store’s 16-byte random salt: the same value gives the same hash on one machine and never across machines. Free text (an error’s message, a panic message) goes through a scrubber that removes home paths, URLs, e-mail addresses, user@host, the values of key=value pairs whose key names a secret, network and hardware addresses, long runs that look like tokens, and the user’s and host’s names.

Commands

cupertino diagnose events                                  # every event, oldest first
cupertino diagnose events --since 24h --severity error     # the errors and fatal events of the last day
cupertino diagnose events --component cupertino-server --id server.gpu
cupertino --format jsonl diagnose events --follow          # new events as JSON lines, until Ctrl-C
cupertino diagnose events clear --yes                      # delete the store's events
cupertino diagnose export --output report.json             # one file for a bug report
cupertino diagnose export --output report.json --include-logs --since 2d
CommandWhat it does
diagnose eventsPrints the events of the store, session.log and the journal, merged in time order. --since takes a duration back from now (30s, 10m, 24h, 2d) or an RFC 3339 time; --component NAME and --id PREFIX may be repeated; --severity info|warn|error|fatal keeps that severity and worse. In the human form each event is one line: its time, severity, component, id and message, then its fields as key=value. In the JSON forms each event is an event whose data is the record. The final data has sources (each with name, status, events, corrupt, partial, and path and detail when there are some) and counts (events, info, warn, error, fatal). A denied journal and lines that are not events are warnings.
diagnose events --followThe same, then the new events until it is stopped: it reads the store and session.log every 250 ms (segments made, rotated or deleted meanwhile are fine) and follows the journal with journalctl --follow from the last entry it read. A stop (Ctrl-C) ends it with exit 0, as does a closed output.
diagnose events clear --yesDeletes every segment of the store under its lock and keeps the salt. Without --yes it deletes nothing and fails with invalid_usage/confirmation_required (exit 2). The journal and session.log are not changed.
diagnose export --output FILEWrites one JSON document, mode 0600, to a file that must not exist (validation/file_exists, exit 5, otherwise): schema (cupertino.diag.export.v1), created, versions (cli, commit, os_image, kernel), report (every check above, its texts through the scrubber), events and sources. --since limits the events. --include-logs adds logs with server.log, server.log.1 and session.log, every line through the scrubber with the store’s salt, so their hashes match the events’. Read the file before you share it.

Journal access

The system services’ events are in the system journal, which only root and members of the systemd-journal, wheel or adm groups can read. For anyone else the journal source is denied and a warning says so; the store and session.log are still read. To see them, add yourself to systemd-journal (sudo usermod -aG systemd-journal $USER, then log in again). A source is ok when it gave events, empty when it gave none the filter lets through, unavailable when it cannot be read (no store yet, no session.log, no journalctl) and corrupt with a count when some of its lines are not events of this schema.

session.log

The session (cupertino-server --session) writes a line to ~/.local/state/cupertino/session.log when a session starts and when the compositor ends. Its lines are turned into cupertino.diag.v1 records when they are read, with component cupertino-server, source session.log, an empty version, no commit and pid 0. They are never stored a second time. The lines carry local time without a zone, which is read with this machine’s time zone.

LineRecord
starting, starting with a limit of N ssession.start, info; limit_seconds
the compositor ended normally after N ssession.end, info; cause normal, status, seconds
the compositor was stopped by the session (status S) after N ssession.end, info; cause stopped
every other the compositor … linesession.end_abnormal, error; cause signal (with signal), watchdog, reason (with the compositor’s reason, scrubbed), status or unknown (with the scrubbed text)

Portals

Cupertino ships cupertino-portal, an xdg-desktop-portal backend. Sandboxed and unsandboxed apps use it to ask for a file, a screen share, a screenshot or a choice of app. The server sets XDG_CURRENT_DESKTOP=Cupertino, so xdg-desktop-portal picks it. The crate’s README (crates/cupertino-portal/README.md) has the protocol details; this page is the overview.

What it serves

InterfaceWhat it does
SettingsThree appearance keys for apps that read them: the colour scheme (light or dark), contrast, and reduced motion. A change is announced to apps.
FileChooserOpen and Save As windows drawn with CupertinoKit.
ScreenCastShares one display or one window as a PipeWire video stream after you choose the source in a window; it can remember your choice for that app.
AppChooserAsks which app opens a link or a file, when xdg-desktop-portal’s OpenURI needs you to choose.
ScreenshotAsks before it takes a screenshot of every display for an app, and lets you pick a colour on screen for an app.
GlobalShortcutsAsks before an app binds keyboard shortcuts that work while another app has the keyboard, remembers the answer for the app, and hands the app the press and release of each key it was given (Using Cupertino every day).

The routing file cupertino-portals.conf sends Settings and FileChooser to Cupertino first and then the GTK backend, sends ScreenCast, AppChooser, Screenshot and GlobalShortcuts to Cupertino only, sends Secret (the saved passwords of sandboxed apps) to gnome-keyring, and sends every other interface to the GTK backend. The packages install it as packaging/files/usr/share/xdg-desktop-portal/cupertino-portals.conf, and the portal crate keeps the same file for a manual install (crates/cupertino-portal/data/cupertino-portals.conf); keep both in step with the interfaces the backend serves. Saved passwords themselves are described in Using Cupertino every day.

App chooser (OpenURI)

A window titled “Open “NAME” with:” lists the apps offered, by the name of their desktop entry. Return opens the selected app, Escape cancels. Nothing opens unless you choose an app. The window opens with the app the caller named as its last choice selected, if it is on the list. Each row shows the app’s own icon, or a generic applications symbol when the app has none. The app you open comes to the front. Limits: an app whose icon is given as a file path shows the generic symbol.

Screen sharing

External recorders such as OBS can consume this portal using Screen Capture (PipeWire); the Cupertino screenshot tool itself has no video recorder. Commit fe28a392 fixes OBS capture failing after source selection with PipeWire’s error alloc buffers: Invalid argument: the producer now negotiates memory types as flags instead of a fixed integer, so its shared-memory offer intersects OBS’s supported-type mask. The regression consumer fails with the old code and receives frames with the fix; a locally rebuilt and restarted portal produced the 2026-11-10 review recording. This is evidence for that installed OBS path, not completion of all browser, output-transform, performance, audio or packaging checks. See the capture regression record.

A window says ““NAME” wants to share your screen. Choose a display or a window.” with the app’s name and icon from its desktop entry. Nothing is selected. The keyboard focus starts on Cancel, and a screen reader reads Cancel first. For half a second after the window first appears on screen nothing you click or type can share, and Return and Space press no button, so a key meant for the app neither shares nor cancels; a key held down from before never shares: Return acts only on a fresh press. After that, Return presses the focused button (with the focus in the list, Share). Escape or closing the window cancels. When the app asks to keep the choice, a check box offers “Let “NAME” share it again without asking”; it starts unticked. A remembered window lasts until the app quits; a remembered display lasts until you forget it in Settings › Privacy › Screen Sharing. A remembered choice is for that app only, as xdg-desktop-portal identifies it.

While anything is shared, a Screen Sharing item in the menu bar says which app shares what and has Stop Sharing. Stop Sharing ends the share but keeps a remembered display: only Forget in Settings takes that back. A remembered window ends with the share. The server’s privacy dot shows besides. If the app quits, the share and its item end with it.

Screenshot

A window says “NAME wants to take a screenshot of your screen.” The keyboard focus starts on Cancel, and the Take Screenshot button works only half a second after the window first appears on screen; until then Return and Space press no button, so a key or a click meant for the app cannot consent. After that, Return presses the focused button: Tab to Take Screenshot first. Escape or closing the window cancels. After you agree, the window gets 300 ms to leave the screen, then one frame of each display is joined into one PNG, without the pointer. The file goes to your Pictures folder (XDG_PICTURES_DIR, else ~/Pictures) as Screenshot DATE at TIME.png, with (2), (3) added when the name is taken. It is created new, never replaces a file, and only you can read it.

After consent, capture has at most three attempts, with a 100 ms delay before retrying a transient failure (#75). A permanent failure is returned to the requesting application.

A rotated or flipped display is turned upright, and displays at different scales are joined where they sit.

Colour picker

When an app asks for a colour, the screen freezes under an overlay with a crosshair and a loupe that magnifies the pixels round the pointer. Click a pixel to give the app its colour (red, green and blue from 0 to 1); Escape cancels. Picking is the consent: no window asks first, and the app learns only the one colour you clicked. A click in the first half second after the overlay appears on that display, or a button held from before the overlay appeared, picks nothing. Plugging in, unplugging or moving a display during a pick ends it without a colour, and only one pick runs at a time.

Limits: the whole screen only (no window or area), no pointer in the image, and a picked colour ignores the display’s colour profile.

Limits that apply to all of them

Only xdg-desktop-portal may call the backend. An app has at most four windows open at once and the whole backend 16; shown text loses control and bidirectional-override characters. ScreenCast and Screenshot are offered only when the server offers the image-capture protocols. For ScreenCast’s own limits (shared memory only, no audio), see the crate README.

Check a release candidate on hardware

An rc passes when hosted CI is green for its exact commit and a maintainer’s machine passes this checklist on a real TTY. A nested or headless run does not replace the hardware checks. Record each result as pass, fail, or blocked, with the observed result. An unchecked or blocked item does not pass. Record the lid check as N/A on a desktop. Link any exception to the maintainers’ explicit release decision.

Use the same candidate for the checkout and installed Arch packages. Have a working Wayland terminal available. Use disposable files, save other work before quitting, and record settings before changing them so you can restore them afterward. Super means the keyboard’s primary desktop modifier.

Scope of this gate

This checklist predates several merged features. The roadmap records the current phase assessment. Run the checks against one exact candidate; an old issue title is not evidence that a feature is still missing.

Browser portals, polkit, PipeWire controls, output configuration, multi-GPU handling, explicit sync and pointer constraints now have implementations. Their presence does not establish hardware acceptance. Credential storage through gnome-keyring is implemented too (#117). The installed-session check of the portals, polkit and credential services is still open in #23. External input methods and remaining interface restrictions stay open in #24 and #28.

The detailed steps below also cover historical package and checkout paths. Record the service backend actually shipped by the candidate: the ISO uses NetworkManager and BlueZ, with Settings adapters. Record multi-monitor and GPU results against the implemented behaviour in Displays and GPUs, rather than the original missing-feature descriptions in #22 and #27.

Run the checks

Run the checks in order. Keep the original text-console login open for the final log collection.

  1. Record the candidate and hosted CI result. From the candidate checkout on a text console, run:

    report=$(mktemp -d "$HOME/cupertino-rc.XXXXXX")
    started=$(date --iso-8601=seconds)
    git rev-parse HEAD > "$report/commit.txt"
    uname -a > "$report/kernel.txt"
    df -h /home > "$report/disk.txt"
    tty > "$report/source-vt.txt"
    lspci -k > "$report/hardware.txt"
    pacman -Q cupertino cupertino-data cupertino-kit > "$report/packages.txt"
    printf 'Report directory: %s\n' "$report"
    

    Open the candidate’s commit on GitHub and record the hosted CI run URL in the report. Expected: every required CI job succeeds for that SHA, the installed packages come from the same candidate, and /home has at least 30 GB free before the source build. A green run for an earlier commit does not pass. Guards #13 and #14.

  2. Start the checkout from the logged-in text console as described in Building and running. Expected: the compositor takes the display and shows the dock, menu bar, Files, and Settings. Both windows accept input. The output is in ~/cupertino-tty.log; a build failure or a blank desktop fails this check. Record display resolution, refresh rate, and scale. Guards #9.

  3. Switch to a spare console with Ctrl+Alt+F4, log in as the same user, and run ps -u "$USER" -o pid=,args= | grep '[c]upertino-'. Return to the source VT recorded in step 1. Expected: cupertino-server, the shell host cupertino-shell and cupertino-login are present for this session, and cupertino shell list names the eleven components of the packaged configuration in the host (menubar, dock, desktop, windowmanager, overview, launcher, notifications, controlcenter, osd, agent and dialogs). Files and Settings are also present. The server also starts its three built-in programs, cupertino-portal, cupertino-prompts and cupertino-control, from the installed package, never from the checkout; cupertino shell list shows them as portal, prompts and desktop-control. Repeated process exits or restarts fail. Guards #17.

  4. Move the mouse slowly onto a window-close button without clicking it, then move quickly across the display and back. Expected: small corrections remain controllable, fast motion covers useful distance, and the pointer does not jump or drift after the mouse stops. Record the mouse model, hardware DPI, and display scale. Guards #1.

  5. Open Settings > Mouse. Set Mouse resolution to the mouse’s known hardware DPI, using the named device row when more than one mouse is attached. Compare a fixed physical movement at two known hardware DPI settings, with the matching resolution selected each time. Expected: matching DPI preserves comparable pointer travel and the selected resolution remains visible after leaving and reopening the pane. If the hardware DPI cannot be established, record this comparison as blocked. Guards #1.

  6. In Mouse, move Tracking speed to a lower stop, then a higher stop. Toggle Pointer acceleration off and on. Restore the original values. Expected: speed changes immediately; with acceleration off, equal physical distances give comparable pointer travel at slow and fast speeds. With acceleration on, fast movement travels farther without losing slow precision. Guards #1.

  7. Open a Files folder with enough entries to scroll, then scroll the Accessibility pane in Settings. Turn the wheel one notch at a time. Expected: a notch moves a useful amount, about three text lines where applicable; both apps scroll consistently and stop when input stops. Guards #2.

  8. In Mouse, turn Natural scrolling off, scroll Files, then turn it on and repeat the same wheel movement. Restore the original value. Expected: direction reverses immediately without restarting either app. If a trackpad is available, repeat with its Natural scrolling control and a two-finger gesture; record the trackpad result separately. Guards #3.

  9. Record the current input_sources entry in ~/.config/cupertino/keyboard.conf. Set only that entry to input_sources = us, de. Focus Settings search and use Ctrl+Space to switch sources. Press the physical key immediately right of T in each source. Expected: the input-source switcher HUD changes its selected source, the key produces y in US and z in German, and switching requires no app restart. Restore the original entry after checking both sources.

  10. Press Super+Space, type settings, and press Escape twice. Hold Super+Tab, select Files, and release Super. Press Super+W to close that Files window, then reopen Files from the dock. Expected: the launcher receives the text, the first Escape clears the query, and the second Escape closes it; the switcher activates the chosen app on release; the close shortcut affects only the focused window.

  11. In Settings search, type alpha beta. Press Super+A, type gamma, move the caret with Left and Right, then click between two characters and type X. Repeat selection and replacement in the launcher and the Files rename editor. Expected: the caret is visible, the selected range is highlighted, typing replaces the selection, and clicks place the caret at the clicked character boundary. Cancel the rename. Guards #4 and #16.

  12. Open Settings > Accessibility > Colour filter. Click the Appearance sidebar row once while the menu is open. Expected: the menu closes, the selected filter stays unchanged, and the pane remains Accessibility. A second click opens Appearance. Return to Accessibility and reopen Colour filter. Press Escape to close the menu, then change pane with Super+[ or Super+] where history is available, or click a sidebar row. Expected: Escape closes the menu and the pane change leaves no popup from the previous pane. Do not expect history shortcuts to navigate while the menu is open. Guards #5.

  13. Reopen Colour filter. Use Down and Up, type the beginning of an item name, and press Escape. Reopen it and select an item with Return, then restore the original value. Expected: highlighting follows the keys, typing selects a matching item, Escape cancels, Return chooses, and the pane beneath receives none of those keys. Guards #18.

  14. In a terminal opened with Super+Return, run mktemp -d "$HOME/cupertino-files-rc.XXXXXX" and record the printed path. Open that empty folder in Files. Create a folder, rename it to rc-renamed, open it, and go back. Expected: names and location update immediately, back navigation returns to the parent, and the selection remains visible. Use only these disposable items.

  15. Focus Files, then Settings, by clicking their windows. Open each app’s name menu and its Window menu. Expected: the menu bar identifies the focused app, each opened menu responds, and dismissal returns keyboard input to that app. Record missing app-specific commands against #6; do not treat a visible label as proof that a command works.

  16. Open Settings > Wi-Fi, then Bluetooth. Expected: Wi-Fi says “Wi-Fi is not available” when neither NetworkManager nor cupertino-netd is running. Bluetooth says “Bluetooth is not available” when neither BlueZ nor cupertino-btd is running. On the ISO, NetworkManager and BlueZ provide these services through Settings adapters. If neither backend is available, the unavailable message passes only this UI check; record connecting and pairing as blocked. Then search for natural scrolling, choose the Mouse result, change the setting, leave the pane, and return. Restore the value. Expected: the result reaches Mouse, the wheel direction in Files matches the new setting, and navigation leaves no search popup. Raw bus errors, a frozen control, or a value that silently resets fail. Guards #3 and #5.

  17. Place Files and Settings side by side. Change Settings > Appearance from Light to Dark and back. Repeat after opening a Colour filter popup. Expected: both apps, the menu bar, and dock update live; Files and Settings share the content-background treatment in each appearance; text remains readable; no old popup survives. Guards #8 and #5.

  18. Open Settings > Wallpaper and choose a picture under Pictures. Expected: the desktop picture changes without restarting the session. Prepare a disposable folder with two different permitted JPEGs named rc.jpg and rc-dark.jpg. Click Add Folder…, navigate to that folder in the chooser, and click Choose. Select its paired thumbnail. Switch Appearance to Dark, then Light. Expected: the folder and thumbnails appear, selecting the pair changes the desktop live, and each appearance switch immediately shows its corresponding image. The pair’s preview says “Light and dark: follows the appearance.”

Click Add Photo…, choose a different permitted JPEG, and click Add. Expected: the chooser closes and the chosen single picture appears live in both appearances. Select the folder’s pair again, then click Remove beneath that folder. Expected: its section disappears immediately, without deleting the files or changing the active picture. Removing a folder only removes its source listing. Choose a pack picture again and confirm that the desktop changes live; restore the original picture and appearance. On failure attach source-tty.log or the packaged user-journal.log from check 29, the selected filenames, appearance, and action time. Guards #7.

  1. Drag a window by its title bar and resize it from a corner. Release the mouse, then move the pointer away. Expected: the window follows while held, stops on release, and the pointer remains free. Typing after focusing the other app reaches that app. This checks ordinary held-button dragging only. Request validation, focus protection and hung-app detection have separate tests; this step does not exercise every case in #20.

  2. Press Super+Ctrl+Q. Try typing and clicking before unlocking, then enter one incorrect password followed by the correct password. Expected: the lock screen covers the desktop, input never reaches the apps, the incorrect password keeps the lock, and the correct password restores the same windows and usable input. Guards #17.

Lock again and enter two incorrect passwords. Switch to the spare text console with Ctrl+Alt+F4, log in as the same user and run faillock --user "$USER". Expected: two failures from the lock screen are listed (the lock screen counts towards the account lockout). Switch back and unlock with the correct password; afterwards faillock --user "$USER" lists none.

  1. Switch to the spare text console with Ctrl+Alt+F4 and back to the recorded source VT. Repeat once while locked, then unlock. Expected: the console and desktop both redraw, the pointer and keyboard work after each return, and a locked session stays locked. Black output, stale frames, or lost input fail. Guards #9.

  2. Leave Files and Settings open. In a terminal inside the desktop, note the time with date --iso-8601=seconds, then run systemctl suspend. Wake the machine with its power button or supported wake key, then unlock. Expected: logind’s sleep notification locks the session before sleep; on wake the display redraws and the same apps accept pointer and keyboard input after authentication. On wake the server treats the end of sleep as input and wakes the displays. A crash, persistent black display, or lost input fails. If logind refuses suspend, record its reason as blocked, not a successful resume. On failure attach source-tty.log, power-journal.log, and kernel-journal.log collected in check 29; for the packaged repeat, also attach user-journal.log and login-journal.log. Include the sleep and wake times. Guards the session-reactivation path also exercised by #9.

  3. On a laptop, leave Files and Settings open and record whether it is on AC power, docked, or driving an external display. Record the host’s lid policy with systemd-analyze cat-config systemd/logind.conf. Close the lid, then reopen it; wake and unlock if it suspended. Expected: the host’s logind policy decides whether closing the lid suspends. Cupertino does not set a separate lid action. If the host suspends, the lock and resume expectations in check 22 apply. If it does not, reopening leaves the desktop and input usable without requiring a suspend event. Mark this check N/A on a desktop. On failure attach the check-22 logs, lid policy, power/dock state, and close/open times. Display rearrangement caused by closing a laptop panel retains the known limitations of #22.

  4. With Files and Settings open, record the external display’s connector and unplug time. If another display remains active, put a normal, unminimized window on the external display first. Unplug its video cable, verify the remaining desktop, then reconnect the same cable and test pointer and keyboard input again. Expected on the selected GPU: the disconnected head disappears; with an output remaining, normal windows from the removed output move into the first remaining output’s current workspace and fit its usable area. Reconnection announces the head again and enables it unless its stored configuration disables it, using its stored settings or the default preferred mode. A compositor crash or lost input on the remaining display fails. Record these known limitations without failing this gate: restoration of original positions and workspaces, mixed-scale transitions and last-output reconnection require explicit observed results (#22); connectors on a second GPU are implemented but still need hardware verification (#27). If the external display is the only output, still unplug and reconnect it, but classify stranded-window behavior against #22 rather than expecting automatic recovery. If no external display is available, mark this check blocked. On failure attach source-tty.log or the packaged-session logs, plus kernel-journal.log from check 29. Include the connector, remaining outputs, plug times, and any display disconnected, DRM, or connector-scan messages.

  5. Save any work and press Ctrl+Alt+Backspace to end the checkout run. On the original console, run cp "$HOME/cupertino-tty.log" "$report/source-tty.log". Expected: the script returns to that console without a crash, and the compositor and its shell children have exited. Check with the process command from step 3. This shortcut tests compositor exit, not a confirmed user logout.

  6. Return to the machine’s existing display manager, choose its Cupertino session, and log in. Do not enable or replace a display manager for this check. Expected: the packaged session entry starts /usr/bin/cupertino-server --session and reaches the desktop without run-cupertino.sh or a checkout on PATH. Open Files and Settings from the dock or launcher. If there is no configured session chooser, mark this check blocked rather than substituting the checkout script. Guards #13 and #17.

  7. In the packaged session, repeat the process inventory from step 3, the launcher and switcher actions from step 10, the wallpaper actions from check 18, and lock, unlock, VT return, suspend, lid, and monitor hotplug from checks 20–24. Record each result separately, preserving the desktop lid N/A and the documented display limitations. Expected: all nine packaged shell processes and the four built-in processes run (cupertino shell list), their executable paths resolve to installed binaries, and the desktop remains usable after unlock and VT return. Do not accept the checkout run as evidence for this path. Guards #17 and #9.

  8. Save work in the packaged session and press Ctrl+Alt+Backspace. Expected: the compositor and its shell processes exit, the display-manager session ends, and its login screen returns. Verify from the spare console with the process command in step 3. This tests compositor exit, not a confirmed log out. Then log in again and choose Log Out from the menu bar’s system menu (or Super+Shift+Q) and confirm: the applications are asked to quit and the login screen returns. Record the session menu against #19.

  9. On the original text console, collect the packaged-session and login-manager journal since the recorded start time:

sudo journalctl -b --since "$started" _UID="$(id -u)" > "$report/user-journal.log"
sudo journalctl -b --since "$started" \
  -u display-manager.service > "$report/login-journal.log"
sudo journalctl -b --since "$started" \
  -u systemd-suspend.service -u systemd-logind.service > "$report/power-journal.log"
sudo journalctl -b --since "$started" -k > "$report/kernel-journal.log"

Expected: the report contains the exact SHA, hosted CI URL, package versions, hardware details, per-check results, and source-tty.log. For each failure, attach the relevant log and include its check number, timestamp, expected result, observed result, and reproducible action. If the display manager redirects session stderr to a file instead of the journal, attach that configured file too; an empty journal is not proof of a clean run. Include both startup warnings from #9 if present. Review logs for private data before sharing. Restore the recorded input and appearance settings. Record who ran the gate and the date; leave unexecuted checks marked blocked.

Building and running

Requirements

  • Rust 1.100.0, which rust-toolchain.toml pins (rustup installs it on first use). sccache is the compiler wrapper; the default linker is used.
  • OpenGL ES drivers (Mesa) and a Wayland session to run nested in. A TTY session needs logind and a DRM/KMS device.
  • A Wayland terminal such as foot to start inside the session.
  • Some crates link system libraries (for example the session manager links libpam); each crate’s README lists what it needs.

Build output is large: leave tens of GiB free before starting.

Development builds without tests

For a local build or binary replacement, build only the package and binary being changed, without enabling every workspace test feature:

cargo build --locked -p cupertino-portal --bin cupertino-portal
cargo build --locked -p cupertino-server --bin cupertino-server

These commands compile the selected binary and its dependencies, without test harnesses, examples or benchmarks. Ordinary cargo build does not compile test harnesses either. Do not add --all-targets, --tests or cargo test to a build-only operation. --all-features alone does not select test targets, but can enable optional test-support dependencies, so prefer the production features needed by the package.

cargo build-programs builds every program of the workspace in release mode (an alias for cargo build --locked --release --workspace --bins that names every feature of the workspace’s packages with --features, except cupertino-kit/test, which only dev-dependencies turn on; cupertino-layers checks the list). The package recipes build with it.

Validate changes separately with cargo xtask ci --profile agent, which checks the crates you changed (see Tests).

Keep the same profile and build environment during an active development task so Cargo can reuse unchanged artifacts. Switching between dev and release, or starting from a fresh target, forces more compilation. Incremental compilation is disabled by this repository’s configuration; shared downloads are not a shared compiled target.

Installing a local build

On Arch Linux, makepkg -si in packaging/arch/cupertino builds the packages of the checkout (release, no test suite) and installs them:

cd packaging/arch/cupertino
makepkg -si

Install the three packages together, so the server, the shell host, the applications, the theme and the assets come from one commit. A change to the server or to what the session manager links takes effect at the next login; a shell component or program takes it with cupertino shell restart NAME. Leave nothing in the development folder that the package replaces: the server starts a folder file only when it is no older than the installed program.

Installed-session iteration

When developing inside Cupertino, choose the smallest change that can demonstrate the fix. Rebuilding the workspace and restarting the session are separate operations; neither is the default for a change to one application.

Changed componentDevelopment loopEffect on the running session
A setting supported by the live watcherChange the setting and observe its applied valueNo restart; shell, screenshot and menu-bar geometry remain startup settings
Files or SettingsRegular applications: build the binary (Files with --features app) and run that build directly; no installed file is replacedQuit the installed copy first when the change concerns its single instance; preserve navigation and pending work
A component of the shell host: dock, menubar, launcher, notifications, controlcenter, osd, desktop, windowmanager, overview or dialogsThe development folder loop below, as the session’s own user: a build of cupertino-shell that runs that one componentA short interruption of that component; the host and the other components go on; transient state can be lost (overview/switcher, queued notifications, window placement, open panels)
PortalBuild only cupertino-portal; test it nested or headless and leave it for a planned package update; after the update, cupertino shell restart portalRestarting the portal ends its active screen-sharing sessions and outstanding requests
Login, lock screen, the session agent, authentication prompts, desktop controlUse private backends, a nested session or a VM before a planned package update; after the update, cupertino shell restart NAME (login, agent, prompts, desktop-control)They never start from the development folder; a restart loses what they held in memory (an open prompt, every desktop-control run)
Session manager, network/Bluetooth/power daemonsUse private backends, a nested session or a VM before a planned package updateThese can affect authentication, connectivity or device state; the session manager takes a new package at the next login, the daemons through their system service units
Server, its linked libraries or vendored SmithayBuild the server and exercise it nested or headlessA new server binary takes effect in the installed desktop at its next session start
A library shared by applicationsRebuild the consuming binaries needed to test the changeRust libraries are linked into each consumer; copying a library alone does not update them

The development folder

Root declares the folder once, and from then on the session’s user tries builds of the shell host for the eligible components without root:

sudo cupertino dev-folder enable                      # ~/.local/lib/cupertino/dev, every eligible component
sudo cupertino dev-folder enable --components dock,menubar

This sets the dev_folder key of /etc/cupertino/compositor.json (see The shell host) and creates the folder with mode 0700 for the user who ran sudo. Eligible components are the ones the file’s shell section runs (its components less its off) except agent: in the packaged configuration menubar, dock, desktop, windowmanager, overview, launcher, notifications, controlcenter, osd and dialogs. The session agent, login (the lock screen), the portal, the prompts, desktop control, a data-control client and the server itself are never eligible. A server that supports the key reads it again when the file changes; it applies from each component’s next start. sudo cupertino dev-folder disable removes the key and leaves the folder’s files in place.

A component the folder names runs in a host of its own, cupertino-shell --only NAME, which the server starts from <folder>/cupertino-shell instead of /usr/bin/cupertino-shell at every start of that host, so one restart runs one rebuilt component while the shared host runs the others. It starts that file, with the same arguments, environment and roles, only when it is a regular file (not a link) owned by the user or root that neither its group nor others can write, that the user can execute and that is not older than the installed host, in a folder with the same owner and permission rules; otherwise the component runs in the installed shared host and the server logs why. Its log names the program and the source of every start.

The loop

  1. Find the component’s name with cupertino shell list: its COMPONENT column (data.components in --format json) is the name the commands take, RUNS IN says which host runs it (host-NAME (development folder) for a host of the folder) and CONNECTED whether it connected, and a process named host-NAME (data.processes) is the host a component of the folder runs in, whose dev_program is the file the folder provides. The component’s crate is crates/cupertino-NAME, except agent (cupertino-shell-agent), desktop, overview and dialogs (cupertino-shell-desktop, -overview, -dialogs); the program is always cupertino-shell.

  2. Build the shell host with Cargo with its production features. A build that passes stays running (step 6), so build it as the package does: the release profile and the installed theme directory (without CUPERTINO_THEME_DIR the binary reads the theme from the checkout it was built in).

    CUPERTINO_THEME_DIR=/usr/share/cupertino/theme \
      cargo build --release --locked -p cupertino-shell --bin cupertino-shell
    

    Validate the change separately with cargo xtask ci --profile agent, as for any implementation change. The build must speak the running server’s protocols: a change that also needs a new server waits for the next session start.

  3. Copy it into the folder by a staged write and an atomic rename, never by truncating a file a process may be running:

    dev=~/.local/lib/cupertino/dev   install -m 0755 target/release/cupertino-shell "$dev/.cupertino-shell.new"
    mv -f "$dev/.cupertino-shell.new" "$dev/cupertino-shell"
    

    Record the source commit, any uncommitted changes and the file’s hash (sha256sum).

  4. cupertino shell restart dock. The server stops the component’s host (SIGTERM, then SIGKILL after 5 s) and starts it again from the file that is there now, in a host of its own, and the command prints the host’s pid, its start time, the program and whether it is the development folder’s once the component says it is ready. cupertino shell list shows the same at any time. A start that fails is reported, and the server keeps retrying after its throttle; going back (step 6) is the rollback.

  5. Verify the changed interaction in the session through desktop control (the cupertino-desktop skill) or by hand, and confirm that the server and the other components stayed alive. Defer a restart while the component has active work or a screen share.

  6. A build that passes its live check stays running from the folder; record the component, the source commit and the hash with it. cupertino shell use-installed dock removes the folder’s file and restarts the component in the installed host: run it at once when the candidate fails, and once an installed package contains the change. The folder holds one cupertino-shell for every component it names, so the others start the installed host at their next start.

Only the user’s own session runs the folder’s files: the server checks them against the user it runs as, so another account’s session, root’s files aside, never starts them. A package update wins over the folder: the server starts a file of the folder only when it was last modified no earlier than the installed host, whose package files keep their build time, so a build left behind stops starting once a newer package is installed. cupertino shell list marks such a file development folder (older than installed) (dev_program_older_than_installed in JSON) when it was last modified before the installed program, whose package files keep their build time, and cupertino diagnose warns about it (shell.dev_folder) with the use-installed command to run.

After a package install, a change that lies only in a shell component or a supervised program (a name cupertino shell list shows, the built-in portal, prompts and desktop-control included) takes effect with cupertino shell restart NAME, deferred while it is in use. Only a change to the server, to what it links or to the session manager needs a new login.

Components that are not eligible

The server, the login process, the session manager, the session agent, the prompts, the portal, desktop control and the system daemons are not swapped in a running session. Build them, exercise them nested or headless (cupertino desktop start --backend nested|headless) or in a VM, and take them into the installed desktop through a planned package update: then cupertino shell restart NAME for the components and programs the server supervises (agent, login, portal, prompts, desktop-control), a new login for the server and the session manager. When a manual replacement is unavoidable for an investigation, follow the same identity rules as above: find the process through the server’s runtime record under $XDG_RUNTIME_DIR/cupertino/server-<socket>.json, its parent and start time, never by name alone (another nested session may run the same program); keep a rollback copy, stage the new executable beside the installed one and rename it into place with the required owner and mode, and record it as a local override of a package-owned file to reconcile at the next package update. Never redirect the live desktop to a worktree or enable --dev-shell there.

Desktop automation development strategy

The first objective is a shorter observe, reproduce, change and verify loop for the desktop quality backlog. The provider service and voice features in Phase 7 are a separate roadmap item. Terra 6.1 should use desktop tools provided by an in-tree Rust adapter; the compositor owns desktop policy and input routing, without an LLM client or provider credentials.

Implementation status

The dependency-free cupertino-control-model owns grant state and aggregate input ownership. Private protocol version 1 stays discovery-only. Version 2 implements explicit output-scoped observation, capture, pointer and keyboard grants. Version 4 asks the person once per app and remembers the answer. Version 5 lets the controller hold a run for each agent it serves, on its one connection.

Each request comes from an app. The controller names the process on the other end of its local socket (the agent’s bridge) by process id and start time; the compositor checks the start time and walks up to 32 parents to the first connected display client. An application client whose windows name one desktop entry makes that entry the app, so a terminal holds the permission for the agents run inside it; otherwise the app is the executable of the bridge’s parent. A requester whose process is gone or was replaced is refused as unidentified. Observe, semantic actions, pointer and keyboard need the app’s Desktop Control service; capture needs its Screen Capture service. The answers live in desktop-control.conf, which Settings › Privacy edits and the compositor watches. A service turned off refuses the request at once (denied), with no panel. All needed services turned on start the run at once, with no panel and no consent authority needed. Otherwise Cupertino’s own Kit consent panel names the app (its name and icon, or the program’s name and path) and the services, starts with Don’t Allow focused and mentions Settings › Privacy. Allow and Don’t Allow need a fresh physical-input serial delivered to the registered consent surface after the request, and are remembered for the services asked; closing the panel answers this run only. An app whose name a line cannot hold, or a file that cannot be written, gets an answer for this run only, which is logged. A request that needs the person while no consent panel is connected is refused with no_authority. Turning a service off or removing the app in Settings revokes a run that uses it; turning one on starts nothing. Injected input cannot approve consent, reach session/authentication surfaces or invoke reserved session shortcuts or menu-bar power actions.

The person and the run use the desktop at the same time: physical input never pauses or revokes a run, and each source’s presses are its own, so a key or button both hold is released only when the last of them lets go. The authentication prompt, or a protected session panel taking the keyboard, suspends the run; it resumes by itself when that closes, and resume only resumes it sooner, never asking again. The consent panel closes after the decision; no permanent status panel is shown, and the menu bar’s capture indicator shows while an active run may capture. Ctrl+Alt+Escape stops control without changing what the person decided. Lock, session deactivation, loss of the controller and local peer exit revoke the run and release only its owned input; after the unlock the next request of an allowed app starts at once. Loss of the consent panel revokes only a run waiting for its answer. Capture excludes consent surfaces and authentication prompts. Capture sources belong to one approved epoch (the controller selects its run for each source it creates), and denied or revoked sources cannot acquire a later grant.

Several agents work at once, each through its own bridge and run. Each run has its own epoch, app, phase, refusals, geometry revision, captures and waits, and its requests act on its own epoch only. Their input interleaves like input from separate devices: each run’s held keys and buttons are its own, released when that run ends, without touching another run’s or the person’s. A stop, a revocation or a bridge leaving ends that run alone. Runs whose app needs the person’s answer are asked one at a time on the consent panel, in the order they asked; a later one waits in the awaiting-consent phase until its turn. The compositor allows eight sessions on the controller’s connection (MAX_RUNS_PER_CONTROLLER in cupertino-control-model), the controller serves as many local connections, and a further connection is answered at once with an error saying the controller is full, which the bridge reports. Geometry revisions reject stale input coordinates. Bounded outcome history suppresses duplicate mutations; evicted outcomes are unknown and never replayed.

The compositor supervises the in-tree Rust cupertino-control --serve process on its private connection. Its socket is $XDG_RUNTIME_DIR/cupertino/control-WAYLAND_DISPLAY.sock, mode 0600 in a private directory. Each local connection gets a fresh inactive run and negotiates {"op":"hello","version":1}. The controller checks the same-user peer and holds its exact process descriptor: a copied socket cannot preserve a dead peer’s grant. Commands, queues, capture allocations and deadlines are bounded per peer: each peer has one command in flight, and a second command before the response disconnects it. The controller’s loop never waits on one peer: replies, phase waits and capture frames are pending operations with deadlines, multiplexed on the Wayland connection and the peers’ wakeups, and each peer’s responses are written (and its capture encoded) on a thread of its own. The controller sleeps on native transport/accept wakeups when idle.

In a development session, pass --dev-shell --control-program /absolute/path/to/cupertino-control to the new server and run the matching login process with its existing Session and SessionLock roles. Run cupertino-control --session WAYLAND_DISPLAY and send sequential JSON lines on stdin; it negotiates the handshake. Keep that process connected across commands: closing it ends its run. Each invocation is its own run, and an app the person allowed starts again at once:

{"op":"request","output":"headless-1","capabilities":15}
{"op":"wait","phase":2,"timeout_ms":30000}
{"op":"move","x":200,"y":200}
{"op":"button","code":272,"pressed":true}
{"op":"button","code":272,"pressed":false}
{"op":"key","code":30,"pressed":true}
{"op":"key","code":30,"pressed":false}
{"op":"scroll","horizontal":0,"vertical":40}
{"op":"capture"}
{"op":"capture","region":{"x":100,"y":80,"width":320,"height":200}}
{"op":"stop"}

A request may be repeated: while the run awaits consent, is active or is suspended on the same output with no more capabilities, it answers with that run as it is. Another output or more capabilities ends that run, releasing its input, and the controller starts a new one on a fresh session, asking the person only for services the app is not yet allowed. Once the run ended, for whatever reason, the next request starts a fresh run with a new epoch the same way, without a stop first. The compositor keeps an ended run ended: a start on its session is refused with stale_epoch, after denied (a service the person turned off) and before busy.

Capability bits are observe 1, capture 2, pointer 4, keyboard 8 and semantic actions 16. Semantic actions also require observe. Keys use evdev codes; coordinates and scrolling use logical points relative to the approved output. Capture returns an upright PNG as base64 with its geometry: without a region, the whole output at one image pixel per logical point (downscaled with a sharp cubic filter, never enlarged); with region (logical points relative to the output, entirely inside it, else refused), that rectangle at the output’s device pixels. The result’s width and height are the image’s pixels and region the logical rectangle it covers, its edges moved outward to whole device pixels: image pixel (px, py) is the logical point (region.x + px * region.width / width, region.y + py * region.height / height). A frame the compositor did not deliver upright is refused rather than mis-mapped. The hello reply’s capture_regions: true says the controller takes regions; a controller from before it ignores the field and returns the whole output, so the bridge does not send it a region. status reports epoch and phase: inactive 0, consent 1, active 2, suspended 3, revoked 4. A suspended run resumes by itself; resume never asks again. A refusal names its reason; denied points the person to Settings › Privacy › Desktop Control or Screen Capture. The local protocol stays at version 3 for older bridges; the controller names its peer to the compositor itself. Closing the local connection ends its run. The local protocol accepts typed operations, not shell commands or arbitrary file paths.

Version 3 adds Kit semantics and a Rust MCP stdio bridge in the same executable. Public cupertino_semantics_v1 publishers may describe only their own Wayland surfaces; they gain no control authority. The compositor requests snapshots only while a matching output has an active observe grant. Lock, protected surfaces, authentication prompts and the consent authority are excluded. Kit exports its existing runtime tree: stable generational node IDs, roles, names, states, logical bounds, supported actions and list/table positions. Password values carry only a protected marker and expose no actions. Text is bounded at UTF-8 boundaries and explicitly marked when truncated. Complete publication replacement removes old nodes; surface/window destruction invalidates its handles. Third-party windows have compositor metadata with no Kit snapshot.

Native observe returns output-scoped windows and complete publication revisions. action takes window, revision, node, action and optional typed data. Both the compositor and the owning Kit runtime recheck the live revision and action before dispatch. Completion follows the runtime update and publication; uncertain/time-limited outcomes require observation before retry. No action is replayed automatically. Version 3 also invalidates input coordinate revisions when published state or visible window layout changes. Optional revision on local pointer requests enforces the caller’s token.

Start the bridge with an explicit selected display:

cupertino-control --mcp "$WAYLAND_DISPLAY"

Omit the display argument to select the host’s WAYLAND_DISPLAY; a missing environment value is an error, so it never attaches to an arbitrary runtime socket. This mode lets an installed MCP registration follow the next login.

The bridge implements MCP stdio versions 2025-06-18 and 2025-11-25 (initialization), plus 2026-07-28 per-request discovery. It exposes twelve tools: status, request_control, observe, action, capture, move, button, key, scroll, wait, resume and stop. Status lists output names without exposing their content. Request only the needed capabilities, await phase 2 (at once for an app the person allowed, after the native panel otherwise), and pass the resulting epoch to each subsequent call. request_control may be repeated as the local request may; the bridge refuses a call naming an epoch other than its current run’s, or a run that ended (except wait and stop), before anything reaches it. After a denial the agent tells the person where to turn the app on instead of asking again. Observe accepts window, exact role and name substring filters, reports truncation, and supplies output-relative bounds. Opaque identifiers and publication revisions are decimal strings, preserving all 64 bits. Geometry revisions remain numbers. Action returns its outcome and a fresh observation; capture returns PNG image content with geometry and the logical region the image covers (the whole output at logical size, or an optional region at device pixels), without duplicating base64 in text; an image over 16 MiB is refused with a request for a smaller region. Cancellation and stdin EOF close the native lease and release owned input. Queues, messages, images, publication sizes, waits and stalled stdout writes have explicit bounds. Tool discovery works offline.

The checkout registers the installed controller for agent hosts working in it, and only there: .codex/config.toml for the Codex MCP host (loaded once the checkout is a trusted project) and .mcp.json for Claude Code (approved once when it asks). Both run /usr/bin/cupertino-control --mcp and pass the host’s XDG_RUNTIME_DIR and WAYLAND_DISPLAY through, so the bridge follows the session the host runs in. Do not add a user-wide registration as well. Check the result from the checkout with codex mcp get cupertino or claude mcp get cupertino.

For a development candidate, use a stable staged binary path outside the disposable build target. Choose gpt-6.1-terra in the host; this bridge requires no API client or new credential. A host connection refresh is separate from restarting Cupertino. Host MCP tool approval and native desktop consent are separate gates. The project Codex configuration approves this one server’s tools (default_tools_approval_mode = "approve"), which a host with approval policy never needs; the compositor still asks the person natively the first time the app requests control. Check the real Counter and Forms examples through the shipped Rust MCP adapter, the supervised controller and the native Kit consent panel on a private headless session: button state changes, Unicode field updates, stale-action/coordinate rejection, protected values, image content and cancellation.

Window-scoped grants, CLI registry convenience commands and deployment automation remain future work. No external control framework, MCP SDK or third-party runtime dependency is added. Server changes take effect at the next planned installed-session start. The current installed compositor cannot acquire a new protocol without that activation; builds and isolated tests do not restart it.

Dependency boundary

The control implementation belongs to Cupertino. Add no external desktop-control library, accessibility framework, MCP SDK or new third-party runtime dependency. In particular, the initial implementation does not use libei/libeis, a Python or Node automation service, or a second toolkit. Existing utility dependencies remain as they are; this work does not remove the dependencies already in the repository.

Use the existing Wayland transport and scanner, Smithay inside the server, Rust’s standard library for local process and socket handling, and the serialization and image support the affected crates already use. MCP and EIS are protocols, not requirements to link another implementation. MCP’s small local stdio interface can be implemented in Rust. EIS/RemoteDesktop interoperability can be considered later as an in-tree protocol implementation if needed; it is not a prerequisite for Terra to operate Cupertino.

Where it lives

AreaWhat it does
cupertino-control-modelGrant states, epochs, scope and capability narrowing, the app a request comes from, the remembered answers, and the ownership of held keys and buttons per input source, without I/O
cupertino-protocolsThe private cupertino_control_v1 and cupertino_control_authority_v1 protocols
cupertino-app-protocolsBounded semantic snapshots and actions, and the public cupertino_semantics_v1 through which a Kit application publishes only its own surfaces
cupertino-serverThe DesktopControl role (the role set is 16 bits wide), grants checked on every request, accepted input routed through the existing handlers, capture checked per frame, the controller’s held input released when its run ends
cupertino-shell-clientBinds the control and consent protocols for the controller and the prompts
cupertino-controlThe supervised controller: the local socket, bounded requests, capture, and the MCP stdio bridge
cupertino-prompts, cupertino-menubar (the menubar component), cupertino-settingsThe consent panel, the capture indicator, and the Privacy pages that edit desktop-control.conf
Contract registry and packagingThe globals, the executable and its install path, under the trusted-path rules of the built-in processes

The public app transport stays free of private shell protocols, and the semantic wire types sit below both the server and the toolkit: the server does not depend on cupertino-ui-core. Publishing semantics grants an application no observation of other applications and no input injection. Still to do: window-scoped grants, cupertino commands over the same operations, and a preview updater in cupertino dev that builds, stages, restarts, verifies and rolls back a candidate as Installed-session iteration describes.

Native input necessarily changes compositor source. A portal or standalone helper cannot add that capability to an already running server. Keep development on private nested/headless sessions until the complete loop passes; deploy the required server change together at the next planned session start. Registering MCP tools may require refreshing the host connection, independently of the Cupertino session.

Observation and action contract

Return a bounded snapshot with a session identifier, process/window generation, observation revision, focused window, output geometry/scale/transform, visible nodes and their supported actions. Use handles scoped to the application’s current process and window generation; reject stale targets after a restart, closed window or incompatible tree update. Select by stable identifier or role and name, and report ambiguity instead of choosing an arbitrary match.

Subscribe to semantic updates only for consented targets while the run needs them. Publish complete revisions with explicit removals and window closure; a paged snapshot must never combine pages from different revisions. Ending the subscription removes the automation overhead from an idle Kit application.

Images must identify the captured output/window, pixel dimensions, crop origin and the transform between image pixels, window-local logical points and desktop coordinates. This matters on a 4K display at scale 2 and on mixed-scale outputs. Keep a screenshot’s revision with a pointer action; if the target moved, observe again. Prefer semantic actions for routine navigation and real input for interactions whose behavior is under test.

Wait for state or presentation events with deadlines instead of fixed sleeps. Return whether an action was queued, applied and verified, with the resulting observation or an explicit timeout. After an uncertain result, inspect before retrying a non-idempotent action. Keep the model outside timing-sensitive loops: a deterministic Rust runner should measure key-repeat delay, menu latency and pointer sequences, then return the trace and result.

Bind automation to the selected session and permitted applications, with visible stop control and server-side lock-state handling. The controller has no grant at startup; a Cupertino-owned session interaction grants scoped control, not an arbitrary program discovering a socket. Revocation and lock invalidate the grant, including capture, and require a fresh grant. Existing authentication prompts must remain hidden from capture and unavailable to control. The controller’s crash must leave the desktop usable.

Protocol and authorization lifecycle

Use a private cupertino_control_v1 manager and a run-scoped session object, with XML-generated client/server bindings in cupertino-protocols. Protocol discovery is not consent: only the supervised control process sees the manager, and it begins with no observation, capture or mutation grant. A normal application cannot acquire a control role from its configuration, executable name, MCP connection or public Wayland socket.

A desktop-control role does not inherit unrestricted Capture or Prompt privileges. Extend capture authorization for this role with grant checks on creation and every in-flight frame; do not give the controller the portal’s existing unconditional capture role. Keep existing portal behavior intact. The input role cannot operate authentication or consent surfaces, including through semantic actions.

The controller requests consent through the consent authority of cupertino-prompts, which presents a Kit dialog for a specific output or window and capabilities. cupertino-prompts receives picker metadata over its own authorized connection; ungranted content is not forwarded to the controller or MCP. The controller is never its own consent authority. The compositor creates the grant only from a fresh genuine-user interaction on that consent surface; injected input and semantic actions cannot authorize, extend or confirm their own grant. Bind the grant to the controller’s live process handle, private Wayland connection, local MCP connection and one run epoch. A run never outlives process restart, reconnect, lock or logout; what persists is the person’s answer for the app, in desktop-control.conf, which lets the app’s next run start without the panel. A reserved physical shortcut revokes control even when the controller is stalled, and leaves the answers as they are. The menu bar shows the capture indicator while a run may capture; the reserved compositor shortcut must remain available when the menu bar or cupertino-prompts is unresponsive. Loss of the grant authority revokes only runs waiting for its answer.

The states are inactive -> awaiting-consent -> active, or inactive -> active when the app’s remembered answers allow every service it needs, with active -> suspended -> active while the authentication prompt or a protected session panel is up, and active|suspended -> revoked for termination. Denial or cancellation returns to inactive. Lock, session deactivation/VT switch, controller or local-tool disconnect, explicit stop and a service the person turned off move active or suspended to revoked before any further action is handled. Showing an authentication prompt suspends control and input delivery and invalidates pending operations; the run resumes by itself after it closes. A new run after revocation asks the person again only when the app’s answer is not remembered. Fixture tests receive a test-owned grant on a private connection, never through a production flag that makes every client privileged.

Operation familyRequired behavior
Session/capability discoveryIdentify protocol version, actual supported operations and current grant state; disclose no ungranted desktop content
ObserveReturn a coherent bounded page of permitted output/window geometry and semantic state, tagged with run epoch and revision
CaptureUse the existing image-copy protocol with grant-aware authorization; return dimensions, source, mapping and frame metadata
Pointer/button/axis/keyValidate scope, state, input ownership and geometry revision, then use normal routing with compositor timestamps
Semantic actionValidate the live node, current advertised action and protected state, then route only to its owning application’s surface
Wait/cancelWait on a defined state/presentation condition with a deadline; cancellation stops pending work and reports completed effects
Revoke/closeStop reads and mutation, cancel pending work, release owned input, and invalidate every handle in the run

Use monotonically increasing request IDs within a run and explicit accepted, completed, refused and cancelled results. An input acknowledgement establishes dispatch only. Application or presentation observations establish the effect; the protocol must not claim a button worked merely because it delivered a press. Before applying a batch, validate every event; if execution later stops, report the completed prefix, never an all-or-nothing result for partial effects. Duplicate mutation IDs return their bounded cached outcome without replay. An expired outcome returns an explicit unknown-outcome refusal and requires observation, rather than guessing whether an action happened.

Every queue, message, batch, semantic page, image allocation and outstanding request set has a named size limit. Bound processing per event-loop turn and apply backpressure outside the compositor. A slow MCP reader cannot hold a compositor borrow, block its main loop or accumulate unbounded screenshots. Wayland protocol errors close malformed connections; expected conditions such as a moved window, missing target, locked session or unsupported action return typed refusals so the controller can observe and recover.

Local host connection

The supervised Rust control process owns the private Wayland connection. Its separate stdio MCP adapter connects to a local socket under the selected session’s private runtime directory; that socket grants no authority by itself. Validate peer credentials and bind each proposed run to the actual peer process/connection. Select a live compositor by socket, PID and start identity, not an arbitrary first runtime record. A connection handshake checks the wire version and reports the server/controller versions before any grant request.

Expose human/JSON commands through the existing cupertino desktop registry and the MCP transport through a dedicated adapter mode of the in-tree control executable. Both use the same typed operation schema, capability descriptions and validators. The MCP mode owns stdout directly; it must not run inside a CLI result wrapper that appends human help, JSON envelopes or end records to the protocol stream.

Keep local IPC and MCP as separate transports over one typed operation model. The local IPC uses bounded framing; MCP uses newline-delimited JSON-RPC and the negotiated MCP version. Handle initialize, initialized, ping, tools/list, tools/call, cancellation, malformed input and clean shutdown explicitly. Images are returned as MCP image content; raw image payloads never enter text logs. No HTTP listener, externally hosted service or API credential is needed for this local bridge.

Existing Codex model authentication remains with the host. Installing or reconnecting an MCP adapter does not enable the host’s disabled built-in Computer API; the owned desktop tools are the integration surface. Verify the actual registered tools in this installation before calling the integration complete. If its host needs a tool-connection refresh, that is separate from restarting the desktop.

Input ownership and text

Calling the existing input functions alone is insufficient. The current keyboard handler tracks aggregate pressed keys, so the server needs a source ledger before controller disconnect cleanup can preserve a physical key held by the person. Track physical and injected presses separately, send aggregate transitions to the existing router, and remember which target received each press. The person’s input never pauses or revokes a run: both sources press and release at once, and the aggregate release goes out only when the last owner lets go. Cancel or release controller-owned state before transferring focus to a lock or authentication surface; cleanup must not send a synthetic release into the newly protected surface.

Define key codes explicitly as Linux evdev codes on the wire, converting once at the existing keyboard boundary. Use compositor-generated monotonic timestamps and preserve event order. A pointer target is in output/window logical coordinates tagged with that geometry’s revision; the compositor maps it to current desktop space. Reject stale geometry and targets outside the grant, rather than silently clicking a different window or clamping into one. Reserved session/power/revocation actions remain unavailable to injected input.

Text has two distinct operations: a supported semantic SetValue for an unprotected Kit field, or actual key events through the existing keyboard layout for an input-path test or third-party client. Report text that cannot be represented by the supported path; do not silently change the person’s keyboard layout or clipboard to type it. Native text-input support can be negotiated separately. Do not expose clipboard access or application launching implicitly through the initial control grant.

Acceptance and evidence

Test protocol and model code without a display, transport code on private connections, and the compositor with fixture homes, assets and buses. Include malformed/oversized messages, unsupported versions, wrong roles, stale handles, lock/revoke/disconnect, held-input cleanup, output removal, rotated/mixed-scale coordinates, and pointer delivery to both native and XWayland applications. Check a slow or stalled client cannot block the compositor loop. Run cargo xtask ci at the level the change needs, and the packaging build, before deployment.

Start regression scenarios with DQ-30 (discover a newly installed fixture desktop entry), DQ-05 (repeat-delay direction), DQ-01 (sidebar bounds) and DQ-32 (current status-menu IDs). Use real pointer paths for DQ-03, DQ-06, DQ-19 and DQ-20; semantic invocation alone cannot prove click routing, long-press timing or click-away behavior.

Each scenario should emit a compact evidence bundle: issue ID, source revision and diff, exact binary hashes and features, running server identity, reproduction steps, state assertions, screenshots where useful, input trace, diagnostic events and elapsed build/test/update time. A visual pass needs pixels; a functional pass needs an observed state change. Neither a model’s completion message nor a headless fixture closes an installed-session acceptance gate.

Try it in one minute (nested)

Run the compositor as a window inside your current Wayland session:

git clone https://github.com/orafaelfragoso/cupertino.git
cd cupertino
cargo run --release -p cupertino-server -- --winit --spawn foot

From a checkout, the apps’ desktop entries (crates/*/data/applications) are not installed, so the menu bar and the dock show “Cupertino-files” and a generic icon instead of “Files” and its icon. Add the crates’ data directories to the search path (keep the host’s directories after them):

export XDG_DATA_DIRS="$PWD/crates/cupertino-files/data:$PWD/crates/cupertino-settings/data:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"

Installed packages put the entries in /usr/share/applications; nothing to set there.

The compositor prints WAYLAND_DISPLAY=<socket> once it listens; start more clients with that variable set. Super+Return starts a terminal (the default terminal through xdg-terminal-exec or $TERMINAL, else the first existing of foot, alacritty, kitty, wezterm, xterm; configurable with terminals). Ctrl+Alt+Backspace quits.

Without a pack of your own, text, icons and cursors come from the built-in fallbacks (see Asset packs); a missing asset never stops a start.

The whole desktop on a TTY

From a text console (switch with Ctrl+Alt+F3), a checkout can start the compositor on the display with the shell host and the components of the packaged configuration (dock, menu bar, launcher, notifications, control panel, OSD, the desktop’s items, window manager, overview, session agent and dialogs), the lock screen, Files and Settings. Build the programs first, then start the server on a fresh session bus:

cargo build-programs
target/release/cupertino-server --check-hardware
dbus-run-session -- target/release/cupertino-server --udev --dev-shell --run-for 600 --spawn cupertino-files --spawn cupertino-settings 2>&1 | tee ~/cupertino-tty.log

--dev-shell lets a configuration file name the supervised programs from any path, so give the server a shell section whose programs are the build’s (a copy of packaging/files/etc/cupertino/compositor.json with the paths changed). Do not run it inside a desktop session. XDG_RUNTIME_DIR must be set, which a console login does. Always give --run-for: a hung server on a console without a limit leaves the keyboard muted.

  • Ctrl+Alt+Backspace quits.
  • Ctrl+Alt+F<n> returns to the console session you came from.

The TTY backend is in daily use on real hardware with an NVIDIA GPU and one display, and runs in virtual machines. Other GPUs and setups with several displays are less tested.

Captures

The server renders the full desktop once headless and writes a PNG:

cargo run --release -p cupertino-server -- --headless --size 1280x800 --screenshot out.png --exit-after-screenshot --spawn cupertino-files

Run it with an empty environment and a temporary home folder when the picture must not depend on the machine.

One surface of Files, the toolkit or the login screens is drawn with the app’s own painter on sample data, without a display, a session bus or the server, by the capture example of its crate:

cargo run -p cupertino-files --example files_capture -- files/sidebar --drop-place Desktop --increase-contrast --sheet
cargo run -p cupertino-kit --example kit_capture -- kit/controls --scale 2

It writes one PNG per state and appearance into captures under $CARGO_TARGET_DIR, else under the workspace’s target (--out changes it) and prints each path. The flags, the file names and the surfaces are in crates/cupertino-kit/README.md. It needs an asset pack and exits 2 without one.

The shell host

The dock, menu bar, launcher, notifications and the other parts of the shell are components of one program, the shell host cupertino-shell (docs/architecture/shell-host.md), each on a thread of its own. Build it with:

cargo build --release -p cupertino-shell

The server starts the host and sends it the components to run. Which ones come from the shell section of /etc/cupertino/compositor.json (the packages install one that starts the whole desktop): components names them (menubar, dock, desktop, windowmanager, overview, launcher, notifications, controlcenter, osd, agent, dialogs), off those that do not run, and alone those that each run in a host of their own. Nothing else runs from the section: a processes list, or a section that is a list, is ignored with a logged warning, and the server starts its own programs (cupertino-login, cupertino-prompts, cupertino-portal, cupertino-control) itself. The user file ~/.config/cupertino/compositor.json can set off and alone but not components, and a checkout or nested run that needs another list starts the server with --dev-shell. A component that fails is restarted alone by its host.

The system file may also declare a development folder, "dev_folder": {"path": "/home/me/.local/lib/cupertino/dev", "components": ["dock", "menubar"]}: an absolute directory and the names of the components that may run from it (sudo cupertino dev-folder enable writes it). Only the system file sets it; the user file can neither declare nor widen it. A name that is no component of the shell, or that holds a role the folder does not allow (agent), is ignored with a warning, and the built-in programs never start from it. A named component runs in a host of its own, started from <path>/cupertino-shell --only NAME instead of the installed host when that file passes its checks (Installed-session iteration). cupertino shell list shows the host’s components and the supervised processes, cupertino shell restart NAME restarts one component where it runs (or ends a host or a built-in program and starts it again at once), and cupertino shell use-installed NAME goes back to the installed host. Without the key every component runs in the installed host.

Backends

FlagBackend
--winitnested window in a Wayland or X session (development)
--dev-shelllet any configuration file set the component list, the development folder and the screenshot program, this one from any path, and run the cupertino-shell found on PATH; for checkouts and nested runs only
--udevTTY: logind, DRM/KMS and evdev
--headlessno display; use with --screenshot out.png --exit-after-screenshot to render one frame

Without a flag the server runs nested when WAYLAND_DISPLAY or DISPLAY is set and on the TTY otherwise. Other useful flags: --size WxH, --scale F, --appearance light|dark, --spawn "cmd args" (repeatable), --run-for S. cargo run -p cupertino-server -- --help lists them all, and the server’s README describes each.

The TTY backend is in daily use on real hardware with an NVIDIA GPU and one display, and runs in virtual machines. Other GPUs and setups with several displays are less tested.

Tests

cargo xtask ci is the one validation command. It plans from git, runs formatting, clippy and nextest and the doc tests on the crates that need them, and writes target/xtask/ci-latest.json:

cargo xtask ci --profile agent                 # the crates you changed
cargo xtask ci --profile integration --base B  # changed crates and their reverse dependencies, the layer check, the gate
cargo xtask ci --profile pr                    # what CI runs on every push
cargo xtask ci --profile full                  # the whole workspace, every feature configuration
cargo xtask ci --profile agent --dry-run       # the plan only

The rules and the feature configurations are in .config/validation.toml: --profile agent for the crates a change touches, integration after merging, pr in CI on every push and full nightly. pr and full lint and test once, with every feature, and then cargo check each package alone with its default features, which finds a feature a package uses but does not enable. Install cargo-nextest (cargo install cargo-nextest --locked). It runs every test in its own process and kills a test that runs longer than 2 minutes, so a hang fails with the test’s name. Shell and app crates with an app feature need it to test their process code; the profiles pass the features of each configuration.

Tests live only in crates/*/tests/ and go through a crate’s public interface. The layer rules are checked by cargo run -p cupertino-layers.

Instruction-count benchmarks

The functions a frame spends its time in have benchmarks counted in instructions, not timed: each runs once under Valgrind’s Callgrind, so its count is the same on a loaded machine as on an idle one, and a rise of a fraction of a percent shows. They are library benchmarks of the gungraun crate, one bench target named instructions per crate (benches/instructions.rs), with what each measures in its header:

CrateWhat is counted
cupertino-raster-mathThe blur’s plan and kernel for a 4K output, the blur of a 4K backdrop, the coverage of a continuous-corner rounded rectangle and the dithered store over a panel’s pixels at 2x
cupertino-glassOne glass sample of the CPU model: inside, on the edge, in a corner, in the neck between joined shapes
cupertino-ui-coreA file manager window’s solve (about 480 nodes): cold, cached, resized
cupertino-ui-renderA 1280 × 800 window with text, a drop shadow and a blur at 2x: its first frame, a whole repaint, one row’s damage
cupertino-ui-text64 file names shaped and laid out, as a list and as an icon grid shows them, and laid out again
cupertino-launcherThe index of 5 000 applications, seven queries, the scorer alone
cargo bench -p cupertino-raster-math --bench instructions
cargo bench -p cupertino-glass --bench instructions -- --save-baseline=main   # keep the counts as the baseline `main`
cargo bench -p cupertino-glass --bench instructions -- --baseline=main        # compare with it

It needs Valgrind (pacman -S valgrind). The framework’s runner, gungraun-runner, must be the library’s version in Cargo.lock exactly (cargo install gungraun-runner --version VERSION --locked). Counts and baselines are kept under target/gungraun with the Callgrind profile of each benchmark, which callgrind_annotate reads. The setup a benchmark names (building the tree, the scene, the index) is not counted. The wall-clock benches beside them (cargo bench -p cupertino-ui-core --bench layout, cargo bench -p cupertino-launcher --bench matching and the other crates’ cargo bench) stay, for the time a call takes.

Counts move a little with the hash seeds of a run (under 0.1% here), so a change has to rise well past that to count. A change to a function these benches cover comes with its benchmark; a new hot function gets one in its crate’s benches/instructions.rs.

Frame timelines

CUPERTINO_PROFILE records where each frame’s time goes, as spans on a timeline, in every process started with it. A slow frame then shows which part of it grew, without adding timing prints. The spans:

  • the toolkit’s run loop: each turn (ui.turn); its update (ui.update: the wake-ups and fades, each platform event by its kind, the tasks run, each message by its type); ui.view; and per window (ui.window) its layout, paint, raster per layer (content, raised, the surface layers), present and the frame handed away (ui.submit); accessibility and semantics; each idle slice;
  • the GPU renderer: gpu.render per layer with its prepare, plan, record, submit and image uploads, and the programs made; the CPU renderer: cpu.raster per layer with its plan, scroll layers and paint;
  • the Wayland presenter: lease (with allocations), copy, commit, submit and the fence wait or finish; a submitted frame’s raster and copy, submit and commit on the render thread’s track (kit-render), or its raster on a CPU pool thread’s (kit-cpu-N) with its commit; the device taken on the render thread (gpu.attach) and the surfaces’ programs made there (gpu.surface_programs); and the GPU warm-up (gpu.warm: gpu.device, gpu.program_turn, the programs and their first draws, gpu.programs.prime) on the warm-up thread’s track (gpu-warm-up);
  • the compositor: each output’s frame (server.output_frame), its scene, its render (lower, supersample, draw) with the glass, material, blur, content blur, surface and shrink passes inside, the flip submitted, the GPU wait of a timed headless frame, and on the text console the late start after a vblank (server.latch_wait) on a track of its own.
ValueWhat is recorded
chrome:DIR/each process’s spans in DIR/<program>-<pid>.json (Trace Event format), which Perfetto opens; the files’ times are the monotonic clock’s, so their events concatenated into one array open as one timeline with a track per process
chrome:FILEone process’s spans in FILE
tracythe spans streamed to the Tracy profiler, in a build with its client (crates/cupertino-diagnostic-events/README.md)
CUPERTINO_PROFILE=chrome:/tmp/trace/ cargo run -p cupertino-server -- --headless --screenshot /tmp/files.png --exit-after-screenshot --spawn cupertino-files
CUPERTINO_PROFILE=chrome:/tmp/trace/ cargo run -p cupertino-server -- --spawn cupertino-files

The server passes the variable to every process it starts. A file is written as the process runs, at most 100 ms behind, and closed when the process exits; a process killed first (the shell host when the server ends) leaves it without the closing ], which Perfetto reads. Unset, no layer is installed and a span costs its callsite’s check that nothing listens, about a nanosecond. The frame timing file (CUPERTINO_FRAME_TIMING, the phases of each frame) is apart and unchanged.

Profiling and performance

Before adding timing code to find out where time goes, profile.

QuestionToolCommand
Which functions take the CPU time of a programperfperf record --call-graph fp -- target/profiling/PROGRAM, then perf report
The same, to browse as a call tree, flame graph or timelinesamplysamply record target/profiling/PROGRAM, then the browser opens it
What allocates, how often, and what the heap holds at its peakheaptrackheaptrack target/profiling/PROGRAM, then heaptrack_gui FILE
Which part of a slow frame grew, on a timeline across every processframe timelinesCUPERTINO_PROFILE=chrome:/tmp/trace/ cargo run -p cupertino-server -- ..., then open the files in Perfetto (Frame timelines)
Whether a change made a hot function slower, in instructionsCallgrindcargo bench -p CRATE --bench instructions (Instruction-count benchmarks)

Build the profiling build first: RUSTFLAGS="-C force-frame-pointers=yes" cargo build --profile profiling -p CRATE --bin PROGRAM --all-features --target-dir target/profiling-fp. The profiling Cargo profile is the release build with full debug info and no stripping; the separate target folder keeps the release build’s cache untouched, and the binary is target/profiling-fp/profiling/PROGRAM.

perf samples user space only (kernel.perf_event_paranoid 2 allows no more), with frame-pointer call chains. To follow a whole session, start the server under the profiler: every process it starts is followed, and perf report -i FILE --pid PID shows one process. heaptrack follows no child process, so run each program on its own under it. A profiler must start the program: attaching to a running process is not allowed here (kernel.yama.ptrace_scope 1).

How to read a CPU profile:

  • Threads: each thread’s share of the process’s samples, so a render or warm-up thread shows apart from the main loop.
  • Self time: the functions the samples were in, in percent of the process’s samples; a hot loop shows here. A library without symbols (the GPU driver) is one summed row, (code without symbols).
  • Inclusive time: a function and everything it calls; the phase that is slow shows here (a toolkit’s update or raster, the compositor’s render). A call chain stops at a library built without frame pointers, so a caller’s share is a lower bound.

How to read a heap profile: the peak heap and peak RSS (RSS includes the tool’s own memory), then the allocation sites by number of calls (temporary allocations in a hot path show here) and by bytes held at the heap’s peak (what fills memory). A site is the innermost frame outside the allocator and the standard containers, with the two frames above it.

Configuration

Plain files under ~/.config/cupertino/, each with an environment override: shortcuts.conf (chord to action lines), compositor.json, keyboard.conf, dock.conf, menubar.conf. The server’s README lists every file and key.

Signed updates

This page describes how Cupertino’s Arch packages are signed, how a machine updates from a signed repository, how it goes back to an earlier release, and how it installs a build of its own. Arch only.

Read this first:

  • No repository is published yet. The release workflow signs the packages and writes the tree of a repository as an artifact of its run; nothing uploads it. Public hosting remains deferred.
  • The public key is supplied separately. The expected primary fingerprint is in packaging/keyring/release-key.fpr. The cupertino-keyring package is built with that public key. Secret keys never belong in the source tree.

The keyring package

packaging/keyring/ holds the recipe of cupertino-keyring (PKGBUILD, cupertino-keyring.install). Built with CUPERTINO_KEYRING_KEY naming an ASCII-armored export of the public key, the package ships the key as /usr/share/pacman/keyrings/cupertino.gpg, the primary key’s fingerprint as cupertino-trusted and an empty cupertino-revoked in the same directory, and runs pacman-key --populate cupertino on install and on upgrade. It depends on pacman.

Trust the key on a new machine

The keyring package is signed by the key it carries, so trust the key before you install the package. With FPR the key’s fingerprint:

sudo pacman-key --recv-keys FPR        # or: sudo pacman-key --add KEYFILE
sudo pacman-key --finger FPR           # compare all 40 hex digits with the fingerprint you were given
sudo pacman-key --lsign-key FPR

Then add the [cupertino] section to /etc/pacman.conf and install the keyring:

[cupertino]
SigLevel = Required DatabaseRequired TrustedOnly
Server = BASE_URL/repo
sudo pacman -Sy cupertino-keyring

The repository tree carries this section as cupertino.conf, with BASE_URL filled in.

Update

Once the repository is in pacman.conf and the key is trusted, an update is the usual pacman command:

sudo pacman -Syu

pacman installs only packages signed by the Cupertino key. It refuses a package that is unsigned, one that was changed after it was signed, and one signed by another key.

Go back to an earlier release

pacman keeps the packages it installed, with their signatures, in /var/cache/pacman/pkg/. Install cupertino and cupertino-data of the same earlier version together, with VERSION the full package version, for example 0.1.0-1:

sudo pacman -U /var/cache/pacman/pkg/cupertino-VERSION-x86_64.pkg.tar.zst \
               /var/cache/pacman/pkg/cupertino-data-VERSION-any.pkg.tar.zst

A release the cache no longer holds is in the archive/ directory of the repository tree; download both packages with their .sig files into one directory and install them the same way. pacman checks a signature that lies beside a package file, so keep the .sig files next to the packages. cupertino-kit, the C SDK, is versioned with cupertino; go back with it too when it is installed.

Install a build of your own

On an Arch machine with a checkout, the stable recipe builds the checkout’s committed HEAD:

cd packaging/arch/cupertino
makepkg -si

It builds cupertino, cupertino-data and cupertino-kit and installs them. The version is the release version, the number of commits and the commit, for example 0.1.0.4048.gd80dfeb0d, so every commit is newer than the one before it and than the release it follows. Uncommitted changes are not built. CARGO_TARGET_DIR keeps the Cargo target directory between builds. These packages are not signed; pacman installs them because they are local files.

The repository tree

For the maintainers. The release workflow signs each package (a detached .sig, checked), makes the signed database with repo-add --sign and writes:

PathContent
repo/The packages with their .sig, and cupertino.db and cupertino.files with their .sig, as plain files.
archive/The packages of this release with their .sig.
cupertino.confThe [cupertino] section for pacman.conf, with SigLevel = Required DatabaseRequired TrustedOnly and Server = BASE_URL/repo.
SHA256SUMSThe checksum of every other file in the tree, with its detached signature SHA256SUMS.sig.

When you upload it, put the packages and their .sig first and the database files last, so a client never sees a database that names a missing file.

Displays and GPUs

How Cupertino treats monitors, the GPU driver and X11 programs on the text-console (DRM) backend, as the code on main does it. Where a statement is about a program Cupertino starts but does not contain (the NVIDIA driver, xwayland-satellite), the page says so. For a machine you can reach, cupertino diagnose shows most of this at once.

Monitors

Start-up state. A display that connects gets its stored state if displays.conf has one for it. Otherwise it starts at its preferred mode, at the default scale for its size, enabled and to the right of the displays already there. The --scale option of the server replaces the scale in both cases.

  • A stored mode the display no longer offers is replaced by its preferred mode, unless the display accepts custom modes.
  • A display stored as off is turned on when no other display is on.
  • When the last display that is on goes away, the first remaining display is turned on.

Default scale. For a display without a stored scale, the scale comes from its mode in pixels and its physical size in millimetres. It is 1 when the physical size is unknown, or when the display is too small to have a list of choices.

  • The machine’s own panel (an eDP, LVDS or DSI connector) offers five sizes: its default size, three with larger text and one with more space. The default is the size at about 127 points per inch, at a whole scale when one is within 5 % of that. A 14-inch 3024 × 1964 panel looks like 1024 × 665, 1147 × 745, 1352 × 878, 1512 × 982 (the default, scale 2) or 1800 × 1169.
  • Any other display offers up to five sizes around the one at 110 points per inch, from scales between 1 and 3 in eighths, and starts at that one.
  • Settings shows these choices for each display under Displays, from larger text to more space, and the server sets the chosen one’s exact scale, so the desktop has exactly the size the choice names.

displays.conf. The file keeps one section per display, keyed by make, model and serial, or by the connector name when there is no serial. The default path is displays.conf in the Cupertino configuration directory; CUPERTINO_DISPLAYS_CONFIG overrides it. A display that is unplugged and plugged in again gets its arrangement back, or a place right of the others when another display took its place meanwhile. An arrangement is applied whole or not at all: displays may touch but not overlap (there is no mirroring), and one that fails part way leaves the previous arrangement as it was.

Unplugging a display. Its windows move to the remaining display, inside its usable area; a full-screen window there becomes a normal window, an open menu of a window on it closes, an overview on it ends, the pointer comes onto the remaining display and a locked session stays locked. When the same display (same make, model and serial, or connector) comes back, the windows that left it go back to the same place, unless you moved them meanwhile.

Where things open. New windows, the launcher, notifications, the control panel and the overview open on the display you are working on: the one the pointer last moved onto, or the one of the window you last switched to. Each display keeps its own scale and work area.

Mode fallback. If a display cannot show the mode it starts in (a link or dock too slow for it, or a mode the driver refuses), the server tries other modes of that display in this order: the same size at lower refresh rates, then smaller sizes, each from its highest refresh rate. It never tries a mode larger or faster than the wanted one. The first mode that works is shown and announced as the current mode, and the log says the display shows a fallback mode. The fallback is not stored: the next time the display is plugged in, the wanted mode is tried again. If no mode works, the display stays off and the log says why. No other mode is tried when the failure is “device busy” or “permission denied”, because another mode cannot fix those.

Hotplug. On the text console the server scans the connectors of a card:

  • at start,
  • on each change event of that card,
  • when the session becomes active again,
  • after the event queue overflowed.

A paused session does not scan, except a session that has not been shown yet: it starts in the background, announces its displays’ outputs and draws its first frame off screen, and sets their modes when the console comes to it. Opening a card does not blank its displays: they keep what they show until the first frame of the session replaces it, which needs no modeset when the display is in the same mode already, and after each scan of an active session every CRTC that drives no display of it is switched off. The scan compares the displays with every connector that has a CRTC, not only with the one that changed.

When a display appears to clients. An output is announced to applications only once its display shows it. A display that fails to turn on announces nothing. An output that goes away is withdrawn at once, but its global stays bindable for 5 seconds before it is destroyed, so a client that binds it late is not disconnected. Panels on it are closed first, and none of them keeps the keyboard: an open control panel is dismissed and the window that had the keyboard gets it back.

Changing displays from a program. The server offers zwlr_output_manager_v1, which tools such as wlr-randr and kanshi use. A configuration the display cannot carry out fails and the previous state is restored. A sandboxed client does not see this protocol.

More than one GPU. Every DRM card is opened. One card draws every frame: the one named by CUPERTINO_DRM_DEVICE, otherwise the primary one. The value is a card node such as /dev/dri/card1, its render node such as /dev/dri/renderD129, or a /dev/dri/by-path link to either. If the variable names no GPU, the log warns and the primary one renders; an empty value counts as unset. A display on another card shows a copy of what the render card drew. If the render card goes away, the session cannot go on drawing.

How the desktop is drawn. The server composites the windows and draws its materials with OpenGL ES on the render card. CupertinoKit applications and shell components draw their own windows with the renderer of their class (GPU rendering, #155): Files windows, Settings, the dock and the launcher with the toolkit’s GPU renderer on the render node the compositor names, handed over as dmabufs; the menu bar, banners, OSD, the control panel, screenshot, portal dialogs, lock screen, login and the desktop’s items on the CPU in shared memory; other applications on the CPU until a window is large or busy. CUPERTINO_RENDERER=gpu or cpu overrides the class for one process. A process that wanted the GPU and could not have it logs renderer: fell back to the CPU and records toolkit.renderer.fallback, which cupertino diagnose events lists. Each process writes renderer: <cpu|gpu> (<reason>) to its standard error when its renderer changes, and cupertino diagnose lists them as gpu.client_renderers.

Frame timing and depth. On the text console, where a display’s page flips report the driver’s timestamps, the server starts each frame late after a vblank, as late as the recent frames’ render times allow (the GPU’s work included) and at most half a refresh period, so a frame shows the latest pointer motion and input; CUPERTINO_LATE_LATCH=0 makes every frame start at once after the vblank. Primary planes have 10 bits a channel (AB30), and 8 bits where a display has no 10-bit format; "output_depth": 8 in compositor.json keeps them at 8 bits from the next session on. The output initialised line in server.log names the format each display got. Screenshots, screen sharing and recordings are 8 bits a channel at either depth. CUPERTINO_DRM_TRACE=1 logs each display’s presentation-time branch, missed refreshes, planes, start delay and input-to-flip and pointer-to-flip latency.

Fractional scales. A display at a scale that is not a whole number (a 3840 × 2160 panel at 1.5 is 2560 × 1440 points) is drawn at the next whole scale, 2, into a frame of its own of 5120 × 2880 pixels, and one last pass shrinks that frame to the panel’s pixels, each pixel the average of what it covers. Windows are asked to draw at that whole scale, so thin lines such as the rings of the window buttons and the rows an application lays out land on whole pixels before the shrink. Points, layout, input and the display’s size in Settings stay as they are; the pointer is drawn at the panel’s own pixels and can still use the cursor plane. A full-screen window cannot be scanned out directly on such a display, and the frame costs 1.78 times the pixels and about 59 MB. Screenshots, screen sharing and recordings of the display are what the panel shows, at its own pixels; a capture of one window is the window at the whole scale its application drew it at. "fractional_scale_mode": "direct" in compositor.json draws straight at the display’s scale instead, as before ("supersample" is the default); the value may also be an object of display names (the connector, such as DP-1, or the display’s identity) to modes, with "*" for the others. It applies at once. Under "direct" a row an application declares opaque but leaves transparent shows black, never what lies behind it.

No GPU acceleration. When the render card has only a software renderer (Mesa’s llvmpipe, as on a virtual machine without 3D or a GPU whose driver is missing), another card with a hardware renderer draws instead. When no card has one, the CPU draws the desktop: it works, but more slowly and with more power. The server log warns and names the card, and session.log gets a line <time> only a software renderer is available: gpu=<card>; the CPU draws the desktop, which cupertino diagnose reports as gpu.renderer. A card named by CUPERTINO_DRM_DEVICE draws even when its renderer is a software one. On a virtual machine, a GPU with 3D (virtio-vga-gl or virtio-gpu-gl in QEMU) makes the desktop fast again.

NVIDIA

Before the TTY backend starts, the server checks the machine. cupertino-server --check-hardware runs the same check and prints it; the server refuses to start when it finds a problem.

FindingLevelFix the check gives
The nvidia_drm module is not loadedproblemmodprobe nvidia_drm modeset=1 and set the option in /etc/modprobe.d
nvidia_drm modeset is not Yproblemadd nvidia-drm.modeset=1 to the kernel command line and reboot
No nvidia-drm_gbm.so GBM backend foundwarninginstall the driver’s GBM library (nvidia-utils)

The check also notes the driver version and whether nvidia-drm fbdev is on. cat /sys/module/nvidia_drm/parameters/modeset prints Y when modesetting is on. A machine installed from the USB image sets nvidia_drm modeset=1 fbdev=1 for NVIDIA cards from the Turing generation on.

Explicit sync. When the render card’s kernel can wait on syncobj timelines, the server offers linux-drm-syncobj-v1 and logs explicit sync (linux-drm-syncobj-v1) is offered. Otherwise it logs explicit sync is not offered: the kernel cannot wait on syncobj timelines. A client that uses explicit sync says when its buffer is ready; any other dmabuf is waited for through its fences. Whether explicit sync works with the NVIDIA driver has not been run, according to Using Cupertino every day. On a new NVIDIA machine, check for the log line and that a browser starts and draws.

X11 programs

X11 programs run through xwayland-satellite, which starts when the first X11 program connects.

  • The server needs xwayland-satellite on PATH. Without it, or when no X display can be taken, the session serves Wayland programs only and the log says why.
  • Each X11 window reaches the server as an ordinary window, so it follows the same window policy, focus and input as any other.
  • A program the server starts gets DISPLAY and XAUTHORITY for the X display, and XDG_SESSION_TYPE=wayland.
  • It also gets QT_QPA_PLATFORM=wayland;xcb and ELECTRON_OZONE_PLATFORM_HINT=auto, so Qt and Electron prefer Wayland and fall back to X11. A value the program or the session already set is kept. SDL_VIDEODRIVER is not set.
  • When the satellite exits, the server waits for the next X11 program to start it again. After a failure, or a success within a second of the start, the restart waits for a back-off that starts at 1 second and doubles to 30 seconds, so a satellite that cannot run is not started in a loop. X11 windows that were open are lost when it exits.
  • The satellite, not the server, decides the scale of X11 windows. With monitors of different scales, Using Cupertino every day says every X11 window gets the smallest scale; that is the satellite’s behaviour and is not checked here.

Report a display problem

Run this in the session that has the problem, from a terminal:

cupertino diagnose --area gpu --area session --area crash --area logs

Add --format json before diagnose for a script, and attach the file cupertino diagnose export --output FILE writes. gpu.driver shows the driver and the findings above, session.wayland shows whether the compositor answers, crash.last shows how the last sessions ended, and logs.paths shows where the logs are. With the report, attach ~/.local/state/cupertino/session.log and server.log (and server.log.1 after a restart). The log lines named on this page (display connected, the display shows a fallback mode, explicit sync) are in server.log.

CupertinoKit: getting started

CupertinoKit is the UI toolkit for Cupertino applications. An application depends on one crate, cupertino-kit (MPL-2.0), whose modules list the toolkit items an application names and which has a prelude. Every command below runs from a checkout and was run on the commit this page was written against.

What an application needs

  • A Wayland display. cupertino_kit::app::run::<A>() connects to the session’s display. Without one it returns cannot connect to the Wayland display and the example exits with a failure:

    env -u WAYLAND_DISPLAY cargo run -p cupertino-kit --example counter
    
  • No Cupertino desktop. The kit reads theme data from $CUPERTINO_SPEC_DIR (a default directory otherwise). When the data is missing or unusable, the application starts on the built-in neutral theme and prints one line on stderr saying why. Any Wayland compositor works. To see it, point the variable at an empty directory:

    CUPERTINO_SPEC_DIR="$(mktemp -d)" cargo run -p cupertino-kit --example counter
    

    The window opens and stderr shows cupertino-kit: no Cupertino theme (…); using the neutral theme.

  • Fonts and icons come from an asset pack when one is installed (CUPERTINO_ASSET_DIR, else the user or system pack). The kit falls back to its built-in Inter font. Headless captures of the controls sheet need a pack (kit_capture says so).

  • The renderer follows the application’s class, Application::RENDERER. An application that declares none (RendererClass::ByUse) starts on the CPU: the kit rasterizes each window there (cupertino-ui-render), repainting only what changed and keeping scrolled content as an image it moves, and hands it to the compositor in shared memory (wl_shm). Once one of its windows covers more than a quarter of its output, or presents more than 30 frames a second for two seconds, the process moves to the GPU renderer (cupertino-ui-render’s gpu module) on the device the compositor names and hands its windows over as dmabufs, drawing on the CPU while the device warms up. RendererClass::Gpu starts there (a large or busy window), RendererClass::Cpu never goes (a small window drawn now and then); CUPERTINO_RENDERER=cpu|gpu overrides the class, and the CPU stays the fallback. A long list or grid keeps scrolling cheap by building only the rows near its viewport, each as Element::kept(key, mark, build): a row whose mark is the same as last time keeps its nodes and their layout and is not built again, and while nothing in it changed its paint is laid into the frame as it was, without walking its nodes.

  • No Cupertino compositor for transitions. A window with a shell role may hand its open and close to the compositor (Command::Window(key, WindowRequest::Present(changes)), when Capabilities::present_animation says it can), which then fades, moves or scales all the window draws on its clock without the application drawing a frame; the request may be given in the update that opens the window and goes with its first frame. On any other compositor the capability is off and the application animates the window itself, as before. Popups need nothing of the application: where the compositor presents popups (Capabilities::present_popups) the runtime hands it a popover’s growth out of its anchor and shrinking back and a closing menu’s fade, on the same curves, and draws no frame for them. A part of a window can move on the compositor’s clock too: a widget whose Widget::surface_layer returns a SurfaceLayerMark (a key and a look: glass style, glass group, corner radius, masks, and where Capabilities::surface_layer_edges says so a LayerEdge the compositor draws along the glass’s outline) draws its subtree into a surface of its own at its layout size, when Capabilities::surface_layers says the compositor can; the application then sets or animates that layer’s place, size, opacity, scale, corner radius and content blur with Command::Window(key, WindowRequest::Layer { key, changes }), which draws no frame; a motion no single curve draws (a product of two springs, a clamped ramp) goes as values at even steps of its duration (LayerChange::through). The window’s root hears Event::LayersSettled once its layers’ last running animation ends. A widget whose Widget::overlay_layer returns a mark draws its overlay (a caret) into a layer of its own over the layer it lies in and at that layer’s rect, inside a marked subtree too, so the overlay can fade on the compositor’s clock while it moves with what it lies on (BareField::caret_layer). The compositor holds every value it shows in a range far past any output (places and sizes within a million points, scales up to 64), and one glass group takes at most 16 layers of a window: a 17th is a protocol error (group_full). Elsewhere the subtree paints in place and the application draws its motion itself.

  • A Rust toolchain. Nothing else is installed or enabled by these steps.

Build and run the examples

The four examples live in crates/cupertino-kit/examples. Each opens a window on the session’s display and runs until you close it.

ExampleWhat it showsCommand
CounterA number and two buttons that change itcargo run -p cupertino-kit --example counter
FormsA sign-in form: a name, a password and a choicecargo run -p cupertino-kit --example forms
Virtual List50,000 two-line rows in a scrolling list with multiple selection, a status line, and a button that reverses the order and keeps the selectioncargo run -p cupertino-kit --example virtual-list
EditorText editing, selection and undocargo run -p cupertino-kit --example editor

Build all four without running them:

cargo build -p cupertino-kit --examples

Run them in a nested Cupertino session, on another compositor, or on the host’s Wayland session; see Building and running for the nested server. On a Wayland session, Counter and Forms run until you close them.

From C

The C SDK is the cupertino-kit package: the library libcupertinokit.so.1, the header /usr/include/cupertinokit-1/cupertinokit.h and cupertinokit.pc. A C program needs nothing else, and takes every path from pkg-config. The ABI’s rules (versions, handles, threads, errors) are at the top of the header and in crates/cupertino-ui-abi/README.md. Today the library runs the headless backend only. With the package installed, and gcc, make and pkgconf:

cupertino sdk info                 # what is installed, file by file
cupertino sdk check                # build and run a probe with /usr/bin/cc
cupertino sdk new --lang c demo    # main.c, a Makefile, demo.desktop and a README
make -C demo && ./demo/demo        # prints count: 1, count: 2, count: 3

Versions: the header defines CUPERTINOKIT_ABI_MAJOR and CUPERTINOKIT_ABI_MINOR for the compiler, and pkg-config --atleast-version=1.0.0 cupertinokit checks the installed SDK in a build script. At run time ck_abi_version reports the library’s version; pass the minor version the program needs as abi_minor to ck_runtime_new, which refuses an older library with CK_ERROR_VERSION, and ask ck_has_capability before calling a function added after 1.0. A new major version gets a new soname and include directory. Threads: a runtime belongs to the thread that created it; other threads only post to it through a waker (ck_runtime_waker, ck_waker_post), and the runtime’s thread reads the posts with ck_poll_events.

cupertino sdk new --lang rust NAME starts a Rust project on the cupertino-kit crate of the same release instead (--source CHECKOUT takes it from a Cupertino checkout, offline or before the release is tagged). The samples in crates/cupertino-ui-abi/examples/c build with make the same way.

Accessibility

app::run publishes every window’s accessibility tree over AT-SPI (cupertino-ui-wayland’s atspi module, on AccessKit’s Unix adapter). Nothing is exported until an assistive technology turns accessibility on (org.a11y.Status IsEnabled).

Works:

  • Roles, names, descriptions, states, bounds, relations, children and values (text, number with range and step, toggle).
  • Actions from the assistive technology: click, focus, increment, decrement, expand, collapse, show menu, scroll into view, set value. An action reaches the application only if its target advertised it.
  • Password and protected values carry no value and cannot be set from outside.
  • A text field’s caret and selection, in characters, and a selection set from the assistive technology. A protected field publishes neither.
  • A window root without a name of its own is named by the window’s title. A list item, tree item, cell or tab without a name is labelled by the text inside it. Menu items, tabs and page dots say their place and how many there are.
  • Tests can check a whole window with cupertino-ui-test’s accessibility_audit (unnamed controls, missing values and states, focus that does not agree with the tree, masked text, items without place or count) and drive it as a screen reader would with its AssistiveTechnology stand-in, which also records what live regions announce.
  • While the session is locked, and until an application learns it is not, each of its windows reads as an empty frame without a name and takes no action from the assistive technology; nothing is announced. The unlock publishes the windows whole again. The lock screen is what an assistive technology reads behind the lock.

Not done:

  • Bounds are window-relative, because a Wayland client does not know its window position.
  • A closed window’s AT-SPI object stays until the application exits.
  • An application on another toolkit keeps publishing its tree while the session is locked: only Kit applications hide theirs.

No screen reader was run against the examples for this page, so how a screen reader reads them is not documented here.

Right to left

What exists:

  • Layout mirrors children inside their parent in right-to-left mode. A horizontal scroll view starts at its right edge. Insets are physical and do not mirror.

  • Text follows UAX 9: the base direction comes from the paragraph style or the first strong character, runs are shaped in their direction, lines are reordered for display, and carets, hit testing and selection rectangles work across direction changes, for Latin, Hebrew, Arabic, Devanagari, emoji and digits inside right-to-left text.

  • In the toolkit’s text editing (cupertino-ui-text), the arrow keys move on screen through right-to-left text.

  • The toolkit’s controls sheet draws mirrored:

    cargo run -p cupertino-kit --example kit_capture -- kit/controls --direction rtl
    

    This writes light and dark PNGs under the build directory’s captures/. kit/icons takes the same flag; chevrons follow the reading direction.

  • The controls gallery shows every control family together. Hold one down, disable them all, change their size or draw them over a busy backdrop:

    cargo run -p cupertino-kit --example kit_capture -- kit/gallery --state held-switch --control-size large --backdrop busy --scale 2
    cargo run -p cupertino-kit --example kit_capture -- kit/gallery --sheet
    

    The sheet puts the resting, held and disabled states side by side.

Limits:

  • app::run always lays out left to right; it has no option to change that yet. The kit does not choose the direction from the locale or the session.

What runs on CupertinoKit

CupertinoKit is the toolkit that Cupertino’s own apps draw with. This page says what each of them draws with it and what is still open. Assessed on 2026-11-07 at the end of the Phase 4 work. A program counts as migrated only when its normal entry point draws through Kit. A dependency or a parallel implementation alone does not complete migration. Kit draws a window with the renderer of its application’s class (#155): Files windows, Settings, the dock and the launcher draw on the GPU and hand their windows over as dmabufs; the other shell components and programs draw on the CPU into shared memory; an application that declares no class moves to the GPU once a window is large or busy.

Program or componentOn Kit todayStill open
osd (shell host)The whole overlay: a Kit window on a layer surface for volume, brightness and keyboard backlight.
cupertino-settingsThe Settings window in the full-height-sidebar style: the sidebar with the window control buttons at its top and a search field over tiled rows below them, a floating back and forward toolbar, each pane’s header card over its sections as Kit grouped-form controls, sub-pages opened from navigation rows through the same history with their title in the toolbar, sheets as dialogs, and menus on the desktop’s menu bar. Privacy > Screen Sharing lists each display an app may share again without asking, with Forget. Privacy > Desktop Control and Screen Capture list each app that asked to control the desktop or to take pictures of the screen, with a switch that allows or stops it at once and Forget, which makes it ask again; the page follows the file while it is open. Notifications sets whether notifications show on the lock screen and how much of them shows (Always, When Unlocked, Never), by default and per application.The old painter and window modules are deleted. Accessibility > Screen reader turns the session’s reader on and off through the server (tested against a fake session and a fake reader), and the shared accessibility audit checks a window; speech and braille with a real screen reader are checked by hand in an installed session.
cupertino-filesThe whole app: a live sidebar on the sidebar material with removable media (mount, unlock, eject; Primary+E ejects the row the keyboard is on) and Trash once something is trashed, read over AT-SPI; the full-height-sidebar window style with a floating glass toolbar: the view-mode choice, the View, Tags and Action menus and the search field that opens from a round button; icon view, list view with disclosure triangles and a column view (a chain of folders that scrolls sideways, Right and Left between them, resizable columns kept with the view state and a preview of the selected item at its end), all with a rubber band that scrolls at the edges (the list’s starts on a row’s blank part too), click-to-rename, Ctrl+click menus and Tab by name; a clickable path bar and the status bar; an accessibility audit (every control read and acted on by assistive technology and checked by the shared audit at every step, Tab and Shift+Tab through the whole window in mirror order, column headers included, the keyboard back where it was after menus, renames and a closed folder, a polite live region for transfers, search results and selections, selected rows in the selected text colour); menus and context menus, live folder updates, file operations as jobs of the process (copy, move, duplicate, New Folder with Selection and drops run off the window’s thread and outlive the window that started them; a progress window lists each with its bar and Stop, opens after a second, from Window › Show Progress or from activating Files with no window open, and only hides when closed; a failure opens it; a failure, the end of an operation that ran past that second and an end nobody saw are each one notification, whose click shows the progress window again; nothing pasted on read-only media), Copy and Paste Item between folders, multiple windows of one process per session (a later launch from the dock, a terminal or a folder opened elsewhere hands its folder, or its wish for a window, to the running Files over the session bus), items dragged out of either view with an image of the item, the row or a stack with its count, files dropped from any application onto folders, sidebar places, path bar folders, the Trash and the folder shown, highlighted while over them, folders that spring open under a held drag and give the window back when it leaves or is cancelled, moved within a device and copied across devices, and items that wear their type’s icon from the icon theme (special folders their own, links the alias badge) and pictures their thumbnail, made off the UI thread in the freedesktop cache; a preview window that Space opens on the selection (a picture, the start of a text file or the item’s icon and details, the arrows through several items, an Open with button, a motion that Reduce Motion turns into a fade); tabs on one long track (Primary+T and Primary+W, dragged to reorder, each with its own history and view); and a tags popover that puts colour and named tags on the selection in user.xdg.tags, with the tags in use in the sidebar and found by the search.The old window is deleted. Only PNG, JPEG and WebP pictures get thumbnails and previews (no PDF preview); no gallery view; no Group By; the list offers no AT-SPI Selection interface; when the row the keyboard is on goes away, a screen reader hears the focus on the table or frame around it until Tab or a click moves it on. See the crate README’s open issues.
cupertino-portalNothing of its own: it draws no window. Its file chooser and app chooser are the dialogs component of the shell host, its consent questions are asked by cupertino-prompts, and its colour picker and screen-sharing chooser are shown by cupertino-screenshot. See Portals.The screen-sharing item is a status item that the menu bar draws.
cupertino-promptsAll its prompts: the authentication prompt, the keyring’s password prompt and the consent questions of the portal and of desktop control, as Kit alerts on glass on prompt-role surfaces; its scrim is a Kit window over each output.
controlcenter (shell host)The whole panel: a Kit window on a layer surface with separate glass tiles, level sliders and detail views. It is dismissed when its display is unplugged and opens on a remaining or reconnected one.Real display hot-plug is not yet tried (#22).
menubar (shell host)Bar and menus on Kit layer surfaces. A click on empty bar space closes the open menu and the keyboard goes back to the window.
launcher (shell host)One glass panel for search (results beside a preview of the selected one and its actions, the preview enlarged on Space) and for browsing the applications (category filters, a grid or a list, the recently used first), which the Dock’s app-grid action opens and Escape folds back into the search field; catcher and hidden windows on Kit layer surfaces.See the crate README for interaction and styling limits. Its close, a scope’s open and the search field’s open with its mode buttons run on the compositor’s clock as surface layers (Widget::surface_layer, WindowRequest::Layer), with no buffer part way; while the panel moves, under Reduce Motion and on a compositor without surface layers it draws them itself. Through the field’s open the caret blinks in a layer of its own whose opacity the compositor takes through the field’s blink.
notifications (shell host)Banners and notification centre on Kit layer surfaces: glass cards with wrapped bodies, a centre that scrolls, groups that expand out of their stack, and banners a screen reader speaks with their app, title and body. While the session is locked banners wait in the centre and are not said; the lock screen gets only what the lock-screen policy allows, and nothing is said again at the unlock.Application icons from image data, image paths and desktop entries are not drawn yet.
cupertino-screenshotThe overlay with its selection, window pick, size readout and crosshair, the toolbar and its Options menu, the floating thumbnail and the clipboard pixel, all Kit windows on layer surfaces.Screen recording and markup are not implemented.
dock (shell host)The bar, its context menus, the dragged tile, the Force Quit dialog and the edge strips that move the bar to another display, as Kit windows on layer surfaces, with keyboard navigation (Focus Dock) and accessible names and actions on every tile. The application switcher panel and the overview chrome (workspaces bar, window titles, selection), one of each per display. Everything is drawn through Kit; the component paints nothing itself.Multi-monitor acceptance on hardware is open (#22).
cupertino-loginThe lock screen (Kit windows as session-lock surfaces, one per output), and the greeter’s picker, name and password screens and power menu. The password field is Kit’s secure field, busy while an attempt is checked, invalid after a wrong password until the next edit, and capped at PAM’s 512 bytes. The lock screen shows the notifications the notification daemon lists for it, redacted unless the application’s previews are always shown.Real suspend, console switches and PAM logins are checked by hand (the crate README lists the checks).
agent (shell host)The log out, restart, shut down and power-button panels with the “Open my windows again” checkbox, and the interrupt panel, as Kit windows on overlay layer surfaces.Real power-key holds and power actions are checked by hand.

The OSD

The osd component of the shell host is one 200 by 200 point layer surface at the bottom of the screen, with no keyboard focus and no input. It shows the volume (the default PipeWire sink, else the ALSA master), the display brightness and the keyboard backlight, and the microphone mute. It fades after a short hold. With Reduce Transparency or Increase Contrast it draws an opaque background. The server’s shell section of the configuration names it among the host’s components, and cupertino shell restart osd restarts it. cargo run -p cupertino-osd --example osd_capture -- osd/overlay --sheet draws it without touching the machine’s volume. The crate’s README has the details.

The control panel

The controlcenter component opens below the menu bar at the top right as a transparent Kit window on a layer surface. Each module is its own glass tile, and Wi-Fi, Bluetooth, display and sound grow into a detail view with their networks, devices or outputs. It takes the keyboard while it is shown; every tile is reachable with Tab and the arrow keys. Escape or a press outside it closes it. Its fade in and out run on the compositor’s clock, so opening it draws no frame after the first. With Reduce Transparency the tiles are opaque on one opaque panel. cargo run -p cupertino-controlcenter --example controlcenter_capture -- controlcenter/panel --sheet draws every view without touching the machine’s radios, volume and backlight. The crate’s README has the details.

The screenshot tool

cupertino-screenshot puts a Kit window on a layer surface over each output, and with the toolbar shortcut a Kit toolbar at the bottom of the first output, with its Options menu as a Kit menu. Everything works from the keyboard: Escape cancels, Space switches between selection and window pick, the arrow keys span, move and (with Alt) resize the selection or go through the windows, Return captures, and on the toolbar Tab reaches each control. Assistive technology reads what a capture would take and can capture, cancel and press every toolbar button. Escape, Close and a capture remove the overlay and the toolbar and give the keyboard back before anything is copied, so a capture never contains them. Selections are cut correctly from turned, mirrored and mixed-scale outputs. The crate’s README has the details.

A Kit window publishes its menus to the desktop’s menu bar, and an item chosen there sends its message back to the app. Kit’s own menus (pop-up buttons, context menus) follow the pointer and keys as the menu bar’s do, through cupertino-menu-model’s tracking: a press dragged onto an item chooses it on release while a quick click leaves the menu open, a submenu stays open while the pointer heads into it, and typed letters find an item. A Kit app can also ask for an activation token for another application, and the Dock and the window switcher show the icon that a window sets for itself.

Frame time

Files and Settings were each timed on every frame of their common interactions with the window filling a 3840×2160 display at scales 2, 1.5 and 1. Each frame is timed from its input to the presented frame (update, view, layout, paint, raster on the CPU and the copy of the damage), and the report gives p50, p95, p99, maximum, the frames over 8 ms and the share of the window each frame repainted. Wall time depends on the machine.

Measured on 2026-11-08 on an AMD Ryzen 7 5800X (8 cores, 16 threads) in the release profile, with other builds running on the machine, Files with a folder of 1500 files (p99 at scales 2 / 1.5 / 1, in ms):

Interactionp99Frames over 8 ms
Files: arrow-key selection among the rows in view5.6 / 6.2 / 8.01 of 30 at scale 1
Files: hover over the rows3.2 / 4.2 / 6.3none
Files: the caret’s blink in the search field3.6 / 4.4 / 7.6none
Files: the search field opening10.1 / 12.2 / 11.712 of 13 at scale 2, all 13 at 1.5 and 1
Files: the search field closing8.9 / 9.1 / 11.58, 6 and 13 of 14
Files: typing a new name4.8 / 6.1 / 8.610 of 12 at scale 1
Files: typing a search28.9 / 31.9 / 38.51, 2 and 6 of 11
Files: opening the folder of 1500 files21.1 / 19.1 / 24.8both frames
Files: wheel scrolling the listing27.3 / 29.2 / 38.1all
Files: an arrow key past the last row in view (scrolls a row)32.0 / 30.8 / 38.3all
Settings: switching panes11.9 / 6.9 / 5.03 of 8 at scale 2
Settings: toggling a switch, dragging a slider, the caretunder 1none
Settings: scrolling a pane (at its default size)0.4 / 0.4 / 0.3none
Settings: typing a search (the page lists the results and the sidebar keeps the panes found)16.0 / 12.7 / 7.71 of 8 at scales 2 and 1.5

Before the first damage work every frame of Files but the caret’s and a hover’s repainted 85–95 % of the window and took 57–96 ms. Now a node that draws nothing (a stack, a scroll view’s content, the listing’s gesture layer) damages nothing, a node that draws damages its box, and a change that moves nothing keeps the layout. A folder opened and the search results still repaint everything the listing shows. A scroll moves the listing’s kept image and paints only the rows that come into view; the icon grid builds only the cells near its viewport, keeps each one while the window only scrolls (Element::kept) and makes an item’s icon only for a cell it builds, and the paint of a kept cell that did not change is laid into the frame as it was, without walking it. A full-screen scroll still takes over 8 ms in its worst frames: the toolkit still lays out, places and compares its whole tree each frame, and on the CPU path copies the moved viewport into the shared-memory buffer, which the GPU renderer Files windows draw with removes (Roadmap).

When the Settings pages became grouped forms on their own background, switching panes went from 10.2 / 7.1 / 4.9 ms to 39.4 / 29.1 / 20.3 ms and typing a search from 15.7 / 11.9 / 7.7 to 60.6 / 46.1 / 30.5 ms: the CPU renderer blended every layer pixel by pixel, the page’s background over the window’s, the groups’ fills over the page’s, at about 10.5 ns a damaged pixel. The renderer now takes a shorter way for solid fills, with the same pixels to the byte (crates/cupertino-ui-render/README.md):

  • The pixels a solid rectangle or rounded rectangle covers fully are written as rows, copied when the colour is opaque; only its anti-aliased rim goes through an image of its own.
  • A one-colour write waits until something else paints there, so a group’s fill over the page’s background over the window’s becomes a single write.
  • Nodes under an opaque fill that covers a whole damaged rectangle are not painted, and the rectangle is not cleared.

A damaged pixel of Settings now costs about 2.4 ns instead of 13.5 to 14, and a pixel the Files listing scrolls about 4 instead of 7.8. With these paths turned off, the same build on the same machine took 51.0 / 37.4 / 25.5 ms to switch panes, 75.1 / 55.5 / 37.3 ms to type a search, 54.9 / 57.3 / 62.2 ms to scroll the Files listing and 5.9 / 6.5 / 7.4 ms for an arrow key among the rows in view. Opening and closing the Files search field takes as long either way; it is slower than on 2026-11-07 for reasons outside the renderer.

What this means for you

Nothing you have to change. The programs and components above run as before, with the same shortcuts. Each of them draws its windows with Kit; the “Still open” column lists what it still lacks.

Architecture

Cupertino is a Wayland desktop with separate compositor, shell, applications and services. The ISO and installer ship NetworkManager and BlueZ for network and Bluetooth service. Settings, the control panel and the menu bar select those backends when Cupertino’s own daemons are absent. The in-tree daemons remain development implementations; replacing the shipped services requires feature parity, including enterprise Wi-Fi, VPN and captive-portal handling for networking.

What we own, speak and keep

ScopeExamples
OwnUserspace libraries and policy daemonsdevice discovery, input, seat handling, keymaps, network, Bluetooth and power daemons, notification and tray services
SpeakWire protocols, implemented in Rust without a C libraryWayland; the D-Bus interfaces apps call (notifications, status items, menus); kernel interfaces (DRM/KMS, evdev, netlink, nl80211, Bluetooth management sockets, sysfs)
KeepExternal, each behind one crate boundarythe kernel; Mesa GPU drivers; the D-Bus broker; Smithay for Wayland protocol handling; NetworkManager and BlueZ in the installed distribution; iwd when using cupertino-netd; PipeWire for application audio and screen-sharing streams

Processes

A crash in a shell component or process never takes the desktop down.

ProcessOwns
cupertino-servercompositing, window policy, input routing, cursor, materials (backdrop rendering), the menu bar layer and its auto-hide, window snapping, supervision of the shell host and the built-in processes
cupertino-shellthe shell host: the shell’s components, each on a thread of its own, a failed one restarted alone; today the on-screen displays (osd: volume, brightness and keyboard-backlight overlays, and the keyboard’s input-source switcher and accent picker), the banners and the notification list (notifications, org.freedesktop.Notifications, the list kept across a restart), the control panel (controlcenter, org.cupertino.ControlPanel1), the menu bar (menubar: status items and application menus, DBusMenu, StatusNotifierItem, GMenuModel), the launcher (launcher, org.cupertino.Launcher1: the search and launch panel, and the application browser), the session agent (agent, org.cupertino.SessionAgent1: the log out, restart, shut down and power-button panels, the power key, login items, reopened applications, low-battery notices and the session menu’s state), the items of the Desktop folder on the desktop (desktop), the dock (dock: the bar, the application switcher, the Force Quit dialog, hot corners and the gestures no transaction takes), the overview (overview: the windows in holes, the desktops band, its gesture-bound way in and out) the window manager (windowmanager: the stage and tiling policy, off by default, and the stage strip, whose thumbnails are holes) and the portal’s dialogs (dialogs, org.cupertino.Dialogs1: the file chooser, the file family’s open and save panel, and the app chooser)
cupertino-loginthe login screen and the lock screen (ext-session-lock), with org.cupertino.Login1 (Lock)
cupertino-sessiondthe root-owned half of login: the login screen’s socket, PAM in a worker per attempt, logind sessions and virtual terminals, fast user switching, power, auto login
cupertino-screenshotscreen, window and selection capture, toolbar, floating thumbnail; with --serve, started for the portal, the colour picker and the screen-sharing chooser (org.cupertino.Screenshot1)
cupertino-promptsthe session’s prompts, always running: the polkit authentication agent’s prompt, the keyring’s password prompt and the consent prompts for desktop control, screenshots and global shortcuts (org.cupertino.Prompts1)
cupertino-portalthe xdg-desktop-portal backend, with no interface of its own: screen sharing (its PipeWire streams), screenshots and colour picking (the choosing and picking in cupertino-screenshot), the person’s consent (asked through cupertino-prompts), the file chooser and the app chooser (the dialogs in the shell’s dialogs component), appearance settings
cupertino-controldesktop control for local agents: output-scoped observation, capture, pointer and keyboard runs, each with the person’s consent per app, and its MCP stdio bridge (--mcp)
cupertino-filesthe file manager
cupertino-settingsthe settings app
cupertino-audiodsession-bus-activated org.cupertino.Audio1: default audio devices, volume, mute and stereo balance
cupertino-netdlinks, Wi-Fi through iwd, DHCPv4, resolv.conf, org.cupertino.Network1, on the system bus
cupertino-btdadapters, discovery, pairing with a UI agent, key store, org.cupertino.Bluetooth1, on the system bus
cupertino-powerdbatteries, mains, display and keyboard backlight, lid; the org.freedesktop.UPower subset apps call and org.cupertino.Power1

In a user session the server starts the shell host with the components the shell section of /etc/cupertino/compositor.json names, and four built-in programs from their installed paths, each with its roles: portal, prompts, desktop-control (cupertino-control --serve) and login (cupertino-login). With the server these are the processes always running; cupertino-screenshot starts when it is asked for, and cupertino-audiod by bus activation at first use. On the login screen only cupertino-login --greeter starts. cupertino shell list shows every component and process.

Rendering

The server composites and draws its materials (backdrop blur, glass) on the GPU with OpenGL ES through Smithay’s GLES renderer; with no hardware renderer, Mesa’s software renderer draws instead (Displays and GPUs). CupertinoKit applications and shell processes draw their windows with the renderer of their class, repainting only the damage: Files windows, Settings, the dock and the launcher with the GPU renderer (cupertino-ui-render’s gpu module, over the thin GPU layer cupertino-gpu), handed to the server as dmabufs; the small, rarely repainted and must-draw surfaces on the CPU (cupertino-ui-render) in shared memory; other applications on the CPU until a window is large or busy. The CPU renderer is the standard the GPU renderer follows and its fallback. GPU rendering has the design, docs/architecture/rendering.md the rules every rendering change keeps, and docs/plans/gpu-rendering.md the steps and their checklist (#155).

Rules

  1. The server does only what a window server does. The server restarts a shell process that exits with failure, at most once per second.
  2. Standard protocols first: layer-shell, ext-foreign-toplevel-list, ext-session-lock, ext-idle-notify, ext-image-copy-capture, xdg-activation.
  3. A private protocol covers the gaps. The public cupertino_app_effects_v1 carries backdrop materials by recipe and glass backdrops joined per container (regular, clear, or the dimmer style of large floating panels; each told whether its face is dark or light when it is small enough to follow what lies behind it), backdrops of a subsurface drawn between it and the rest of its window, so content scrolls under a bar’s glass, the title bar style, the appearance, whether the session is locked and where a window’s menus are on the session bus; the public cupertino_layers_v1 lets a window hand the compositor its presentation and layers of its own surface (place, size, opacity, scale, glass, content blur) to animate on the compositor’s clock; the private cupertino_shell_v1, offered only to the shell processes the server starts, carries dock tile rectangles for the minimize effect, overview and workspace transforms driven by the dock, menu bar overrides and how light and how uneven the wallpaper is under the menu bar, application activation and grouping, gesture events, and session lock and appearance notifications. The public cupertino_semantics_v1 lets a Kit application publish the semantic tree of its own surfaces (roles, names, states, bounds and actions) for desktop control, and cupertino_scroll_v1 gives the scroll count of a series of flicks beside the pointer’s axis events; the private cupertino_control_v1 and cupertino_control_authority_v1 are offered only to the desktop controller and to the session agent that asks the person for consent.
  4. One settings store: cupertino-defaults. Files live in $XDG_CONFIG_HOME/cupertino/, each with its own environment override. Writes are atomic and change notification is an inotify watch coalesced until a burst is quiet.
  5. Privileges stay in the daemons. They authorise callers by D-Bus peer credentials plus “is this the active seat user”. There is no polkit. The session runs a polkit authentication agent for other software’s actions; no Cupertino daemon asks polkit. System daemons ship unit files; that is packaging, not a code dependency.
  6. IPC: Wayland between the server and the shell; D-Bus between the shell, apps and the daemons.

Crate layers

A crate’s layer is declared in its manifest ([package.metadata.cupertino] layer). The table, from the bottom, says which layers each layer may depend on, in normal, build and dev dependencies; every crate may also have testing crates as dev-dependencies, and only dev-dependencies point at a testing crate. The crates column is what each crate declares.

LayerCratesMay depend on
foundation (values, maths and data models with no I/O)cupertino-animation, cupertino-geometry, cupertino-keyboard, cupertino-menu-model, cupertino-themefoundation
graphics (the one definition of the drawing maths, and the GPU device)cupertino-gpu, cupertino-raster-mathfoundation, graphics
models (desktop policy as pure logic)cupertino-control-model, cupertino-displays, cupertino-effects, cupertino-input, cupertino-scene, cupertino-wmfoundation, models
system (user-space operating-system access)cupertino-apps, cupertino-assets, cupertino-defaults, cupertino-diagnostic-events, cupertino-icons, cupertino-peer, cupertino-radios, cupertino-trashfoundation, system
platform (kernel interfaces that more than one program needs)cupertino-devices, cupertino-seatfoundation, platform
protocol (wire schemas)cupertino-app-protocols, cupertino-login-ipc, cupertino-protocolsfoundation, protocol
transport (client connections without widgets)cupertino-shell-client, cupertino-wayland-clientfoundation, system, platform, protocol, transport
render (the compositor’s own drawing)cupertino-cursor, cupertino-glassfoundation, graphics, system, platform, render
ui (the toolkit)cupertino-kit, cupertino-ui-abi, cupertino-ui-controls, cupertino-ui-core, cupertino-ui-files, cupertino-ui-render, cupertino-ui-test, cupertino-ui-text, cupertino-ui-waylandfoundation, graphics, system, protocol, transport, ui
shellkit (the shell’s extension of the toolkit)cupertino-kit-shellfoundation, system, protocol, transport, ui
core (the compositor)cupertino-server, cupertino-server-backend, cupertino-server-input, cupertino-server-renderfoundation, graphics, models, system, platform, protocol, render, core
services (processes with no interface of their own)cupertino-audiod, cupertino-btd, cupertino-control, cupertino-netd, cupertino-portal, cupertino-powerd, cupertino-sessiondfoundation, models, system, platform, protocol, transport, services
shellcupertino-controlcenter, cupertino-dock, cupertino-launcher, cupertino-login, cupertino-menubar, cupertino-notifications, cupertino-osd, cupertino-prompts, cupertino-screenshot, cupertino-shell, cupertino-shell-agent, cupertino-shell-desktop, cupertino-shell-dialogs, cupertino-shell-overview, cupertino-windowmanagerfoundation, models, system, protocol, ui, shellkit, shell
appscupertino-files, cupertino-settingsfoundation, models, system, protocol, ui
toolscupertino-cli, cupertino-gpu-shaders, cupertino-gpu-slice, cupertino-layers, xtaskevery layer except core, shell, services, apps, testing
testing (test harnesses, tests that start programs from more than one crate)cupertino-session-testsevery layer

Further rules:

  • No crate reaches a higher layer through a chain of dependencies, also not through tools or testing.
  • foundation and models sources use no std::fs, std::net, std::process, std::env, std::thread, no unsafe and no FFI. Build scripts and tests/ are exempt.
  • A shell crate never depends on another shell crate, except the shell host on its components.
  • cupertino-wayland-client never reaches cupertino-protocols or the wlr, misc or plasma protocol crates; cupertino-app-protocols never reaches cupertino-protocols; cupertino-kit and the cupertino-ui-* crates never reach cupertino-protocols or cupertino-shell-client; cupertino-ui-render never reaches cupertino-ui-wayland or cupertino-wayland-client.
  • shell and apps crates reach the toolkit only through cupertino-kit, and cupertino-shell-client and cupertino-protocols only through cupertino-kit-shell (for shell crates).
  • Inside core, dependencies follow one direction (D25): cupertino-server-backend and cupertino-server-input depend on no other core crate; cupertino-server-render depends only on cupertino-server-backend; cupertino-server depends on all three.
  • Only cupertino-shell (and cupertino-kit-shell itself) may reference cupertino_kit_shell::hosting in src/.
  • External crates stay in their layers: Smithay in core only; the image, Wayland client, xkbcommon, wayland-server, zbus and system-call crates in the layers cupertino-layers lists for them.
  • Every shell and apps crate holds the clippy.toml that cupertino-layers writes, which disallows starting threads, block_on, std::fs, blocking bus calls and reading the theme data.
  • Every crate declares a licence.
  • Only a dev-dependency turns on cupertino-kit/test, and cargo build-programs names every other feature of the workspace’s packages.

cargo run -p cupertino-layers checks them all. Every layer is closed: the check fails on any problem, and no list excuses one. Test code outside a crate’s tests/ is refused by the gate of cargo xtask ci. Keyboard layouts come from the system’s libxkbcommon through the registry xkbcommon crate, the one Smithay uses too; the server keeps the last keymap that compiled when a new layout does not. crates/cupertino-layers/graph/layers.dot is a DOT snapshot of the layers (cargo run -p cupertino-layers -- --graph writes it).

Contracts registry

docs/architecture/contracts.yaml lists every Wayland global the server advertises, every D-Bus interface a Cupertino process serves and every binary a workspace crate builds. Each entry has its version, owner crate and area, threat scope (public, shell-private or system), and the file that defines it with a short text (source_match) found in it; the file’s header defines the fields. No tool checks the registry against the code: keeping it true is part of the change that touches an entry. unknown marks a value that is not measured yet.

The registry records the state of the code; it does not grant access. It covers D-Bus interfaces that Cupertino serves, not the interfaces it calls on other services. When a global, a served interface or a binary is added, removed or moved, change its entry in the same commit.

In-tree Linux interfaces

ReplacesComponentKernel interface
libudevcupertino-devicesNETLINK_KOBJECT_UEVENT, /sys
libinputcupertino-devices (evdev) and cupertino-inputevdev
libseat, logind clientcupertino-seatlogind’s D-Bus protocol (TakeControl, TakeDevice, pause and resume, VT switch)
alsa-libcupertino-audiod (its alsa module)/dev/snd/controlC* ioctls
UPower, backlight helperscupertino-powerd/sys/class/power_supply, /sys/class/backlight, lid switch over evdev
NetworkManager (development alternative)cupertino-netdrtnetlink, nl80211; iwd for authentication
BlueZ daemon (development alternative)cupertino-btdBluetooth management socket, L2CAP

Known limits

  • X11 programs need xwayland-satellite (0.8 or later) and Xwayland installed; without them the session serves Wayland clients only. Drag and drop between X11 and Wayland programs and per-output scales for X11 windows depend on the satellite (it uses one scale for all X11 windows), and none of it has been tested with real applications on hardware.
  • org.cupertino.Session1 authorizes mutating calls by process identity. Settings changes require the trusted Settings executable, the session agent (the agent component of the shell host) or the server. Application quitting requires the session agent or server. Listing and restarting the shell host’s components and the other supervised processes requires an unsandboxed process of the session’s own user. This does not make arbitrary same-user code a security boundary (see SECURITY.md).
  • VM evidence covers the TTY backend. The full real-hardware acceptance matrix remains open; see Roadmap.
  • Applications play audio through PipeWire. The Sound pane uses the session’s org.cupertino.Audio1 mixer. The volume overlay and control panel still use PipeWire and the ALSA playback fallback directly.

GPU rendering

How Cupertino draws, and how it moves the rest of its drawing onto the GPU. This page is the design; the step-by-step plan and its checklist are in docs/plans/gpu-rendering.md, and the rules every change keeps are in docs/architecture/rendering.md. Issue #155.

Where we are

PartDraws withHands over
Compositor (cupertino-server)OpenGL ES 3 through Smithay’s GlesRenderer, plus our own GL passesscanout through DrmCompositor
Glass and materialsthe compositor on the GPU: backdrop captured at half scale, blur pyramid, every glass stage in one shader passn/a
Window shadows, outlines, the shell’s rounded rectangles, the procedural wallpaperthe compositor: passes generated from WGSL, drawn by a cupertino-gpu device borrowed from its context into the framebuffer it has boundn/a
Rounded clips of window content, reduced copiesthe compositor, texture programs compiled through Smithay’s shader interfacen/a
Title bars, window buttons, rims, keyboard HUDsthe compositor: each recorded as a list of draws, drawn by the borrowed device with the toolkit’s coverage program into a texture of the renderer when its state changes (glyphs and button glyph paths kept in an atlas); painted on the CPU from the same list where the device cannot draw itn/a
The procedural cursorthe compositor, rasterized on the CPU (tiny-skia), cached, uploaded on change: the cursor plane’s buffer is filled on the CPUmemory buffers
Toolkit windows of the GPU class (Files windows, Settings, the dock and overview, the launcher) and third-party windows once large or busythe GPU renderer (cupertino-ui-render’s gpu module) after the first frames, which the CPU draws while the device warms up, its scroll layers kept as textures; the CPU renderer on a fallbackdmabufs copied from the renderer’s texture; shared memory on a fallback
Toolkit windows of the CPU class (menu bar, OSD, banners, the control panel, screenshot, portal dialogs, lock screen, login, the desktop’s items)the CPU: tiny-skia, our own glyph rasterizer, resvg icons, box blur for layer effects; CUPERTINO_RENDERER=gpu takes them to the GPU rendererwl_shm, three slots, damage rectangles, drawn straight into the leased slot as abgr8888 where the compositor lists it (what the slot missed repainted, nothing copied), converted into argb8888 elsewhere, the next slot’s pages made off the frame while a window draws frame after frame; on the GPU, dmabufs copied from the renderer’s texture
The polkit agent, keyring prompter and portal pick overlaythe CPU, drawing with tiny-skia directly rather than through the toolkit rendererwl_shm

The material system is already a GPU system: a window asks the compositor for glass by shape and style, and the compositor shades it against whatever is behind it. What is still on the CPU is the content of the windows of the CPU class (small, rarely repainted, or ones that must always draw) and the material effects that need a window’s own pixels (vibrant text and symbols, lifted control thumbs, displacement).

Three facts decide most of the plan:

  • A toolkit frame has phases: update, view, layout, paint, raster, copy, commit. A GPU speeds up raster and copy. Retained layers remove paint and raster of content that did not change. Update, view and layout are touched by neither, so they are measured first and handled on their own where they dominate.
  • A full-window repaint is expensive on the CPU: Files filling a 3840 x 2160 output takes 57–83 ms (p50) to repaint whole and 34–59 ms a frame to scroll, most of it raster (the plan’s step 0 measurements). Layers do not help a resize, which repaints everything; a GPU does.
  • A GPU context is expensive per process. On the NVIDIA driver a GLES context plus its first program costs about 70 MiB of private memory and about 90 ms before the first frame, and tearing it down returns almost none of it. Many shell processes draw small or rarely shown surfaces at 5–10 MiB today. (Single-run probe figures; step 0 of the plan measures them properly.)

Design

1. Shared maths, frozen once

Every renderer, CPU or GPU, toolkit or compositor, computes coverage, blur, shadows, gradients and dithering from one set of definitions: a crate of plain Rust functions with test vectors, in a graphics layer the toolkit, the render layer and the compositor may depend on. The shaders implement the same definitions and are tested against the vectors. The CPU renderer is changed once to use them (see section 7); that change is the look freeze. After it, a change alters pixels only when it names the pixels it changes.

2. Retained layers before the GPU

The toolkit keeps what it drew as layers: images that survive between frames. A scrolled list moves its layer and paints only the strip that came into view; an opening panel or a sliding card changes a transform or an opacity, not pixels. Layers exist in both renderers, so they cut paint and raster cost on every machine without a GPU context. Scroll offsets are rounded to device pixels when drawn, so a moved layer is pixel-identical to a repaint. Minimized and fully covered windows drop their layers; a toolkit window declares the part its pixels cover whole as its opaque region, so it covers the windows under it as any client that declares one does. A kept subtree that did not change is placed from what it was placed from, its semantics laid in as the last pass left them, laid into the next paint as it was and compared with the last frame’s in one go, so a scroll walks, places and compares only the rows that changed. Work a later frame would do is done between frames: the runtime hands a window’s idle time, in short slices that end before its next frame is due, to the widgets that ask for it, and Files’ grid shapes there the names of the cells it is about to build, so the frame that builds them shapes none.

3. Who draws on the GPU: classes of surface

ClassExamplesRenderer
Small or rarely shownOSD, banners, menu bar, the control panel, the About window, polkit and keyring prompts, portal overlays and file chooser, screenshot toolbar and selection overlayCPU, with layers
Must always drawlock screen, loginCPU
Static and full-screenthe desktop’s items (the desktop component)CPU
Large or continuously repaintedFiles windows, Settings, the dock (and its overview), the launcherGPU
Third-party toolkit applicationsanything built on the toolkit or its C ABIGPU once a window is larger than a quarter of its output or presents more than 30 frames a second for two seconds; CPU otherwise

Each process declares its class (RendererClass: Cpu, Gpu, or ByUse for the rule of the third-party row, which an application that declares nothing takes); CUPERTINO_RENDERER=cpu|gpu overrides it. The dock, the launcher and the control panel were measured on both renderers with their layers (the plan’s step 7 measurements): the overview’s frames miss a refresh on the CPU and a typed letter’s frame passes the animation budget there, both within it on the GPU; the control panel draws one frame as it opens and one as it closes, its motion the compositor’s, and the GPU draws it little faster for the 70 MiB a context costs. On the CPU the shadow’s bands, most of a frame’s raster, are drawn once into a picture the process keeps and laid over one texel per pixel, so a whole opening frame at 1.5 takes about 3 ms on the new renderer each opening makes. The polkit agent, the keyring prompter and the portal’s pick overlay draw with tiny-skia directly and never make a GPU device.

Glass is drawn by the compositor for every class, so a CPU surface keeps the full material look. A GPU process paints its first frame on the CPU while its context and programs are prepared on a worker thread, then switches and frees the CPU renderer’s frame, layers and caches; a fallback rebuilds them. A hidden GPU process drops its pools and atlases and keeps its context, because tearing a context down returns almost no memory. The programs come from a per-user cache of saved binaries, which the compositor makes when the session starts (on a thread and a context of its own, off its frame path; prepare_toolkit_programs in compositor.json turns it off), so after a driver update, a shader change or for a new user no application process loads the driver’s compiler, some 55 MiB it would keep until it exits. The processes that start together make what is missing in turn, so with that off only the first compiles and the others load what it saved. With the cache warm a GPU process adds 7–24 MiB of private memory to what it takes on the CPU.

4. Our own thin GPU layer, shaped for Vulkan

A new crate, cupertino-gpu, exposes what a 2D renderer needs: devices, buffers, textures with external memory, immutable pipelines, explicit render passes, bind groups and fences. Its shape follows Vulkan so the second backend is a translation, not a redesign. The one backend is OpenGL ES 3.0 over EGL (glow for GL, EGL and GBM through libloading); a second, Vulkan (ash), is not built yet. EGL and GBM are loaded at run time, so a machine without them takes the fallback instead of failing to start. A borrowed-context mode runs cupertino-gpu passes inside the compositor’s GL context with a defined state-restore contract: between entering and leaving, the device saves and puts back every piece of state it may change (the list is in the crate’s gles::state), and draws with a vertex array of its own. A borrowed device draws either into textures of its own or, in a pass begun with begin_owner_pass, into the framebuffer its owner has bound, at the owner’s viewport and in the owner’s orientation: its programs place their vertices through the projection the owner hands them, and its scissor regions are the framebuffer’s pixels as the owner counts them. That is how the compositor’s own passes draw among Smithay’s draws. Within one frame of its owner the device reads the owner’s state once: Device::pause puts back only the groups of state the device’s calls changed since entering (it notes them as it goes) without reading anything, and Device::resume enters again on what the first enter read, so a frame of many passes costs one read of the state. The owner keeps to its side: between passes it changes no framebuffer, viewport, scissor or blending, and sets its own program, textures and buffers before each draw. A borrowed device also draws into a texture its owner made (Device::wrap_texture), which stays the owner’s.

Orientation is the same on every backend: a target’s first row (the top of the image handed to the compositor) is at clip y = -1 and fragment row 0, texture coordinate v = 0 is a texture’s first row, and pixels are written and read first row first. Nothing is flipped anywhere, because both GL and Vulkan already agree on that once the shader generator’s coordinate adjustment is off.

We do not use wgpu for windows: it hides buffer allocation, damage and explicit sync, which a toolkit that hands buffers to its own compositor has to control, and it costs more per process than a fixed-pipeline renderer needs. That changes if the display list grows toward general vector graphics, or if keeping two backends by hand costs more than wgpu’s overhead; the decision is reviewed before the Vulkan backend is built.

5. Buffers and synchronisation without libwayland

The toolkit speaks Wayland in Rust and never hands EGL or Vulkan a wl_display. It allocates its own buffers on the device the compositor names in dmabuf feedback, renders into them and attaches them through zwp_linux_dmabuf_v1 version 4. Two allocators exist: GBM buffer objects on a hardware device, and dmabuf export of a texture (EGL_MESA_image_dma_buf_export) where there is no GBM, as with a software rasterizer. A device that has neither allocates no dmabufs, and its process draws on the CPU into shared memory (section 8). A buffer uses only a modifier the feedback offers and its own driver can render to; linear is never added on a hardware driver. During a live resize buffers are allocated in size steps and cropped with the viewport. A window keeps two buffers when release points are available, three otherwise.

A buffer is the composite of the window’s layers; its age decides which regions are composited again, as the wl_shm slots do today.

Synchronisation is explicit:

  1. After drawing, the client creates a native fence, flushes, imports the fence into a DRM syncobj on the feedback device’s render node and transfers it to a timeline point; that point is the acquire point of linux-drm-syncobj-v1.
  2. The client waits for the release point through a syncobj eventfd in its event loop before reusing the buffer.
  3. The syncobj surface object is destroyed before a surface attaches shared memory (its first CPU frame, a fallback) and created again when it returns to dmabuf, because a commit without points on such a surface is a protocol error.
  4. Without the syncobj protocol (other compositors, tests), the client waits for its own fence before it commits and reuses a buffer only after its release and one further frame. It never relies on implicit synchronisation, which the NVIDIA driver does not provide for dmabufs.

A surface whose dmabuf import or allocation fails falls back to wl_shm for that surface only.

6. One shader source

Our own programs are written once in WGSL. A build step (cupertino-gpu-shaders, a development binary) concatenates the shared module (the definitions of section 1, crates/cupertino-gpu/shaders/shared.wgsl) into each shader and naga generates GLSL ES 3.00 for the GLES backend and SPIR-V for Vulkan. It generates three sets: cupertino-gpu’s programs, those of cupertino-glass that the compositor draws (crates/cupertino-glass/shaders/, where a line // include NAME.wgsl puts a file of shaders/include/ in place, so the backdrop passes share their block and vertex stage); for the second set it also writes the assembled WGSL without the functions the program never reaches, for the glass crate’s own headless renderer; and the compositor’s rectangle passes (crates/cupertino-server/shaders/passes/, with an include directory of its own). The generated output is committed, so no product binary builds naga; regenerating it must give the committed text. The generator runs with coordinate-space adjustment off, declares every block std140 (GLSL ES 3.00 would leave the layout to the driver), writes the GLSL name of each block and sampler by WGSL group and binding beside the code, since GLSL ES 3.00 has no binding qualifiers, and refuses a program with anything but uniform blocks and textures or with a mat2x2 in a block. Each backend is checked for orientation.

Texture programs compiled through Smithay’s shader interface sample client buffers, including import-only ones through samplerExternalOES, and that interface takes GLSL ES 1.00 only. They stay hand-written: the clip program, its vibrant variant, the reduced copy, the minification filter and the output’s resample (the final pass that shrinks a fractional display’s frame drawn at the next whole scale, by the area each panel pixel covers). Every other program of ours is generated: the backdrop passes (downsample, blur, colour, copy), the material region, the glass composite, the vibrant glyphs and the mesh of the window effects, which the compositor links itself and the headless glass renderer draws on cupertino-gpu, and the compositor’s rectangle passes, which sample no client texture: the window shadow, the rounded rectangle and the procedural wallpaper (a third set, crates/cupertino-server/shaders/passes/, sharing one placement block and vertex stage), drawn by a device borrowed from the compositor’s context into the framebuffer Smithay has bound, one quad per damage rectangle. The CPU model in cupertino-glass stays as the model the glass shader is tested against.

7. Same pixels on both paths

The CPU renderer stays as the standard the GPU renderer is tested against, and as the fallback, so it computes what the GPU computes:

  • coverage of rectangles, rounded rectangles, strokes and clips from the shared distance function, not from supersampled paths; nested clips multiply coverage;
  • blur, drop shadow and inner shadow from one definition: the Gaussian kernel, its pyramid levels, transparent edges, premultiplied alpha and intermediate precision;
  • gradients evaluated per pixel with at most eight stops and one interpolation rule;
  • dithering keyed to the pixel position, never random, so damage repaints are stable;
  • glyphs from our own rasterizer through an atlas, identical by construction, at quarter-pixel x phase and whole-pixel y;
  • path coverage rasterized once on the CPU into a mask atlas; path clips through the mask atlas, the stencil only for pixel-aligned rectangles.

After the look freeze both renderers agree within 2/255 per channel, and no scenario’s client CPU p99 is more than 10% above its baseline.

8. The fallback rule

A process draws on the CPU when:

  • CUPERTINO_RENDERER=cpu is set, or its surface class is a CPU class, or it takes the size and repaint rule and no window of it has been large or busy yet;
  • the compositor offers no dmabuf feedback, the process cannot see the render node of the device it names (a sandbox without /dev/dri), or EGL or GBM cannot be loaded or initialised on the advertised device;
  • the device has no dmabuf allocator: neither GBM nor texture export;
  • the device is a software rasterizer;
  • its context was lost three times within a minute.

CUPERTINO_RENDERER=gpu overrides the class and the software and missing-feedback conditions (it takes the device from EGL), which tests use; a device that cannot be made, one with no allocator, and the context losses still send the process to the CPU. Contexts are created with the same robustness and purge-notification attributes as the compositor’s. Video-memory purges (suspend, VT switch, mode set) are never counted as losses. After a reset or a purge the compositor tells every client its buffers were lost, so an idle client repaints instead of showing what the driver left behind. The renderer each process uses is logged once, reported by cupertino diagnose and recorded in the frame statistics. A process or surface that wanted the GPU and draws on the CPU instead (the process at its start, one surface whose buffer was refused, a reset of its context; a purge is none) logs renderer: fell back to the CPU (<scope>): <why> and records the diagnostic event toolkit.renderer.fallback, which outlasts the session in the user’s event store (a fortnight), so cupertino diagnose events --since 7d shows whether a week went by without one.

Each process declares its class when it connects (RendererClass, Application::RENDERER for an application run by cupertino_kit::app::run); there is no switch for every process. A process of the CPU’s class never makes a device and never binds the dmabuf protocol (reason “its class draws on the CPU”); one of the GPU’s class warms up from its start; one that declares nothing (third-party applications) starts on the CPU and moves to the GPU for the rest of its life once a window covers more than a quarter of the largest output it is on or presents more than 30 frames a second in each of two whole seconds. A process does not move back: tearing a context down returns almost no memory.

A process that may use the GPU draws its first frames on the CPU while a worker thread makes the device and links the programs, then switches (the runtime frees each window’s CPU renderer and draws whole frames with a new one). Linked programs are saved per user in $XDG_CACHE_HOME/cupertino/programs/<driver>/, keyed by the driver’s vendor, renderer and version strings, so the next start loads them instead of compiling; a binary the driver refuses is compiled again and replaced. The compositor makes the toolkit’s programs (cupertino_gpu::shaders::TOOLKIT) there for the render node it offers as the session starts (cupertino_gpu::program_cache::make_ahead), taking the same turn the processes take, so an application process loads every program and compiles none.

9. Layers and animation in the compositor

After layers work inside the client, timed and spring transitions move to the compositor, so they run at the display’s rate even while the application is busy. This needs a protocol of our own, not wl_subsurface, whose integer positions cannot land on device pixels at fractional scales. The protocol carries:

  • geometry in fixed point, applied atomically with the parent surface’s commit;
  • glass attached to a layer, so a moving panel and its glass never separate, and the glass of several layers joined into one shape from their bounds as shown, so a button buds out of a field’s glass as both move;
  • a thin line along the outside of a layer’s glass, or of a glass group’s joined shape, at a width in points that stays as the layer scales, drawn by the glass over what lies there as a stroke around the shape is; it follows the joined outline as the shapes move, so it is left out where they join (a client cannot draw this itself: a layer’s frame is cut only to its own shape);
  • a blur of a layer’s own content, a Gaussian in points animated like any property, which the compositor draws from an offscreen copy of the content through the backdrop blur’s pyramid and passes (keeping the content’s alpha), so a panel’s text softens as it closes without a frame of the application’s;
  • a blend role per layer, so vibrant text and symbols are a layer the compositor blends against the glass behind it;
  • an animation as a curve (timed or spring) with start and target, started at the first presentation of its commit on the compositor’s clock, honouring the time scale and the fixed time tests use;
  • retargeting from the presented value and velocity, with finished and replaced (value, velocity) events;
  • input: animated layers take no input, and the client hit-tests against target values;
  • semantics: accessible bounds are target values, with a settled signal for desktop control;
  • clipping to the window (every layer and its glass cut to the window’s outline, and a layer that masks to its bounds to those bounds within it), and limits: 512 animations a client has running or waiting, queued ones among them, at most 16 layers of a parent in one glass group (a 17th is the group_full error), and every value shown held in a range far past any output, so no request takes the scene past what it can draw;
  • a presentation of a whole surface (a panel, a popup), so a panel’s fade or a popover’s growth out of its anchor runs on the compositor’s clock with no layer of the toolkit’s;
  • a rule for content that arrives late while scrolling.

Scrolling and dock magnification follow the pointer, so they stay client-driven: a cheap commit per frame that moves layers, not a repaint.

On the toolkit’s side a widget marks a subtree a surface layer (Widget::surface_layer): the runtime paints it into a frame of its own at its layout size, with its own damage and renderer, and the window system makes it a layer of the window’s surface, drawn from buffers of its own (shared memory, or dmabufs from the GPU renderer’s texture). The application then sets or animates the layer’s properties with WindowRequest::Layer, which costs no frame; layout, input and semantics keep the layout. A motion that is no single curve of one property (a product of two springs, a clamped ramp) goes as its values at even steps of its duration, which the compositor follows in straight lines on its clock.

The launcher’s panel is drawn as layers once it rests: the enclosure’s glass is a layer that draws nothing but its glass, its content a layer that does not scale, and its dark edge, drawn just outside the shape, a layer of its own on a grid around the enclosure with room for the stroke, centred on the point the panel grows about; each mode button is a layer of glass at its rect and a face (edge, focus ring and symbol) above it. The window itself shows no glass. Its close is then the compositor’s: the glass grows to its end rect and fades, the edge follows it and blurs with the content (the line along a layer’s glass softens by the layer’s content blur), the content blurs and fades, all on the close’s ease-out, with no frame of the application’s. While the panel moves, and under Reduce Motion, it draws itself. The compositor can draw the panel’s edge along its glass itself (layers::glass_edge in a glass layer’s look): along the search field and its mode buttons, capsules all, and along every straight side it is the panel’s own edge within 4 of 255, while at a scope’s continuous corners it follows the glass, where the panel strokes circular arcs that stand up to 0.57 points off it. A scope’s open from hidden can be handed over the same way (layers::open_changes): the layers drawn once at rest in the open’s first frame, then the glass and the edge layer’s scale through the panel’s own values on the open’s spring (sampled, so the compositor’s spring does not come to rest apart from the panel’s), the content’s place on the open’s spring, and all of it faded in, with no frame of the application’s. While the panel scales in or out its content keeps its size, cut off by the glass (Overflow::Crop), and lies on whole device pixels as one picture (Widget::on_pixels), as the compositor moves the content’s layer, so part way the two are the same pixels within 1 of 255; only the edge, the resting stroke scaled, differs from the stroke the panel draws at each scale, along the outline. The search field’s open with its mode buttons is handed over too (layers::field_open_changes). A handed open ends when the window system tells the panel its layers came to rest (WindowEvent::LayersSettled, once, when their last running animation ends), not on the panel’s own clock, with a timer a second past the open’s end in case no word comes.

10. The compositor

The compositor stays on Smithay’s GLES renderer. Its own work, in order:

  1. Non-glass materials take the overlap-limited backdrop generation glass already uses.
  2. The minimize effect reuses one captured texture; the per-frame HUD signature, cursor image clone and wallpaper bookkeeping go.
  3. Blur, material, glass and shadow outputs are dithered by position, from the shared definition.
  4. Windows shown below half their size (overview, app switcher, minimize, zoom transitions) are sampled from a reduced copy kept per window, since textures imported from client buffers cannot hold mipmaps; integer-scale clients shown at a fractional scale get a better minification filter.
  5. Title bars, window buttons, rims and the keyboard HUDs are recorded as lists of draws and drawn in borrowed-context mode into a texture per image, redrawn when its state changes. The shapes take the shared distance with per-corner radii and the corner exponent, as ui_fill does (its block, cupertino_gpu::FillBlock, carries both); glyphs and glyph paths are coverage images in an atlas. The chrome has a program of its own, which lays each draw over what the ones before it made with the CPU painter’s arithmetic (reading the image below from a second texture, blending off), so the GPU image is the CPU painting whatever the driver’s blending precision. The cursor stays a cursor-plane element drawn on the CPU: the DRM compositor fills the cursor plane’s buffer on the CPU, from a mapped buffer, so a GPU image would come back to the CPU to reach it.
  6. Vibrant foreground, lifted thumbs and lenses as glass, the pointer-lit highlight and variable blur, through the layer protocol.

Frame scheduling starts a frame later than now only once the output’s presentation timestamps are known to be real; it latches from the recent maximum render time plus a margin, never later than half a refresh period, because a missed refresh costs more than the latency it saves (the recent maximum is the last 60 frames’ render times, each up to the moment its render fence signalled, read from the fence without waiting once the flip has come, or, where the fence cannot be read, the time to the flip being queued plus an estimate a late-started frame’s miss raises; the margin is 2 ms; a frame that misses its vblank turns the late start off for 60 frames, twice as long for each miss that follows within 60 frames of it coming back, up to 960; CUPERTINO_LATE_LATCH=0 turns it off for a comparison). Primary planes are 10 bits a channel by default (output_depth; 8 where a plane has no 10-bit format, or when the setting asks for 8); captures draw into 8-bit targets of their own. Direct scanout and the cursor plane are already permitted by the DRM path; they are verified on the target driver rather than built. A display at a fractional scale is drawn at the next whole scale into a frame of its own (10 bits a channel where the device renders to it) and shrunk to its pixels by a final pass that dithers at the display’s depth; it gives up direct scanout, keeps the cursor plane, and draws only the damage of the frame mapped to its pixels and widened by one pixel (fractional_scale_mode, render::supersample, docs/plans/scaled-output.md). Overlay planes stay off on the proprietary NVIDIA driver. Variable refresh and colour management are out of scope while the target display supports neither.

Vulkan in the compositor means implementing Smithay’s renderer traits for Vulkan, so DrmCompositor, damage tracking and the scene’s element types survive, and porting the material, glass and mesh passes (about 250 raw GL call sites today). It is built only when a measured budget needs it.

Budgets

Measured on the target machine (NVIDIA, 3840 x 2160 at 60 Hz, scale 1.5) unless noted. The gate column names the plan step whose “done when” checks the row. Every budget is confirmed or revised once against the step 0 baseline, in a reviewed change that records the reason.

MeasureBudgetGate
Any frame, compositor or clientinside one refresh (16.7 ms at 60 Hz); no missed refreshes in the profiled scenarios, and no client frame longer than a refreshevery step: no scenario worse than its baseline beyond the recorded run-to-run noise (step 1: within its 10% budget); absolute from the step that owns the scenario (scroll 4, drag 2, resize and animation 7)
Files wheel scroll with the window filling the output, p99 client frame CPUunder 8 ms at scale 1 and 1.5; paint and raster cover only the exposed strip4
Files live resizeclient CPU excluding raster under 8 ms; client GPU under 4 ms7
Toolkit animation frame (the control panel opening, launcher typing), client CPUunder 4 ms7
Client GPU time per frame (timer queries)under 4 ms6
Compositor frame while a window is dragged over glassp99 GPU time per frame (timestamps) under 4 ms; p99 CPU time to compose and submit a frame, not counting the wait for the GPU, under 2 ms2
First frame of a GPU processno later than the CPU path; the switch to the GPU within 150 ms with a warm program cache6
Added private memory per GPU processunder 80 MiB; CPU-class processes unchanged7
GPU memory per GPU windowat most two buffers and one window-sized layer (width x height x 4 bytes each) plus 32 MiB of atlases and pools, measured as the change in total GPU memory with the window open and closed; a process’s first render target adds the one more target’s size the driver reserves with it7
Client CPU after the look freezeno profiled scenario’s client CPU p99 more than 10% above its baseline, or more than its recorded run-to-run spread where that is larger1
Fence overheadresident-memory slope with fences minus the slope without, under 1 byte per frame over 10 million frames3
Idle desktopno frames drawn and no GPU work but the clock’s minute (one menu bar frame and its composite); processes wake only by the timers recorded and justified in step 0, listed in the plan’s measurements7
Pointer motion to screeninput-to-flip latency from the DRM backend’s log, below the baseline; the cursor on the cursor plane11

Testing

  • Every reference scene of the toolkit’s renderer runs through both renderers: cupertino-ui-render’s GPU tests draw the CPU renderer’s scenes on the GPU and compare them. They run on Mesa’s software rasteriser (llvmpipe) through EGL’s surfaceless platform, with CUPERTINO_EGL_REQUIRED=1 making a missing device a failure. Without a render node the presenter’s end-to-end tests skip and the toolkit windows draw on the CPU.
  • What a software device cannot exercise (GBM, hardware modifiers, syncobj with the DRM backend, the NVIDIA driver) runs on the maintainer’s machine before every push that touches rendering, with CUPERTINO_GPU_REQUIRED=1 making a missing GPU a failure: dmabuf import, syncobj round trips (the headless backend offers the protocol when its device has a render node, and can withhold it), injected context loss and purge, the CPU↔GPU switch mid-session, a failed import falling back to shared memory, a resize storm, the fence soak, and the sample scenes re-run on the NVIDIA GPU.
  • Parity tests cover scales 1, 1.5 and 2 with odd sizes, and a scissored repaint against a full repaint with effects that cross the damage edge.
  • Objective image checks replace judging by eye where possible: an overdraw test that must end in one flat colour (tearing and synchronisation), a run-length check on captured gradients (banding), and a reduced window compared with a box-filtered reference (shimmer).
  • cupertino-gpu has its own tests per backend: pipelines, orientation, atlas eviction, pool reuse, buffer export and import, fences, context loss.
  • The headless session reports the renderer of every process, so a silent fallback shows in the numbers.

Asset packs

Fonts, icons, cursors and wallpapers are not hard-coded. Every process loads them from asset packs. You can replace the whole look or one part of it without rebuilding anything.

Where packs are searched

A pack is a directory with a manifest.json. The packs are searched in this order:

  1. $CUPERTINO_ASSET_DIR (when set and not empty)
  2. $XDG_DATA_HOME/cupertino/assets (~/.local/share/cupertino/assets when unset)
  3. /usr/share/cupertino/assets/cupertino (original first-party icons)
  4. /usr/share/cupertino/assets (remaining system assets)
  5. the built-in fallback

Resolution is per asset: for each logical name the first pack that provides it wins, and a name no pack provides comes from the built-in fallback. Nothing here stops a process: a missing pack, file or name is logged once and drawn as a placeholder. Only invalid JSON or an unsupported version makes one pack unusable, and the search goes on with the next.

KindBuilt-in fallback
Fontsan embedded subset of Inter (SIL Open Font License 1.1), always loaded last
Icons, symbolsa placeholder rounded square
Cursorsthe procedural cursor set of cupertino-cursor
Wallpapera procedural wallpaper

The original first-party icon pack lives at data/assets/cupertino, under GPL-3.0-or-later. Packaging installs it to /usr/share/cupertino/assets/cupertino, searched before the remaining system assets. It supplies original SVG artwork, PNG renditions from 16 through 1024 pixels, and tintable symbols. The remaining default assets use the embedded font, built-in cursors and packaged wallpapers. This pack is the one exception to keeping packs out of the source tree; third-party packs stay outside it.

Its full-colour app tiles use layered frosted glass. System objects remain free-standing: sky-blue folders with recessed marks, folded white documents with small printed type hints, neutral ribbed bins, a display and overlay badges. The parametric artwork has separate 16- and 32-pixel optical editions; any lettering is outlined geometry. The PNG renditions are baked with the cupertino-icons example render-artwork (cargo build --locked -p cupertino-icons --example render-artwork). That example uses the shell’s native SVG loader for every PNG rendition, so the raster source preferred by manifest version 2 has the same lighting and filter support as the source SVG.

For development, set CUPERTINO_ASSET_DIR="$PWD/data/assets/cupertino". Headless session captures search your user pack (when there is one), then that pack; set CUPERTINO_ASSET_DIR= to capture the built-in fallback. An isolated run sets CUPERTINO_ASSET_SEARCH_PATH=, so its processes never open an installed pack.

Manifest, version 2

{
  "version": 2,
  "name": "my-pack",
  "credits": "CREDITS.md",
  "fonts": {
    "ui":   { "family": "Inter", "files": ["fonts/Inter-Variable.ttf"] },
    "mono": { "family": "Noto Sans Mono", "files": ["fonts/NotoSansMono.ttf"] }
  },
  "fallback_fonts": ["fonts/NotoSans-Regular.ttf", "fonts/NotoSansArabic.ttf"],
  "icons": {
    "folder.documents":    { "raster": { "32": "icons/documents-32.png", "64": "icons/documents-64.png" } },
    "document.pdf":        { "svg": "icons/pdf.svg" },
    "symbol.wifi":         { "symbol": "symbols/wifi.svg" },
    "symbol.battery":      { "theme": ["battery-symbolic", "battery-full-symbolic"] },
    "application.generic": { "theme": ["application-x-executable"] }
  },
  "icon_theme": { "name": "Adwaita", "map": "icon-map.toml" },
  "cursors": { "theme": "my-cursors", "path": ["cursors", "$XCURSOR_PATH", "~/.local/share/icons", "/usr/share/icons"] },
  "wallpapers": { "default": { "light": "wallpapers/day.jpg", "dark": "wallpapers/night.jpg" } }
}

A version-1 manifest keeps working: it is read as the version-2 entries it means.

Rules:

  • Paths are relative to the pack directory, plain components only (no .., no absolute path). The one exception is a cursor path entry, which may be an absolute directory or use $XCURSOR_PATH or ~.
  • Icon sources, one per name, tried in this order when several are present: raster (pixel size to PNG; the smallest size at least the request wins, else the largest), svg (full-colour vector), symbol (a single-colour template SVG that the caller tints; only for names that start with symbol.), theme (an ordered list of freedesktop icon names resolved in the host icon theme and its Inherits chain, then hicolor). A name with none of these is “not provided” and falls through to the next pack.
  • icon_theme supplies a default for every name the pack does not list: name is the host theme to search (omit it to use the user’s theme) and map is a TOML file of "<logical name>" = ["<freedesktop name>", ...]. Set "applications": true to look up applications’ own icons (a desktop entry’s Icon=) in that theme and the themes it inherits too, before hicolor; without it applications’ icons come from hicolor alone, whatever theme the host uses. The first pack that sets it decides.
  • Fonts: ui is the role the code asks for first; the roles ui-rounded, ui-compact, mono and serif are optional. The family is the name stored in the font’s name table, not the file name. Weights 400, 500, 600 and 700 should be present (a variable font with named instances, or static faces). fallback_fonts are loaded after the roles’ files for characters those lack; a character no pack face draws comes from the fonts installed on the system (Fontconfig).
  • Wallpapers: PNG or JPEG; light, and dark as an option. credits names a file the About window can show.
  • Unknown keys are ignored and reported once, so a newer pack still loads on an older shell.

Logical names

A pack uses the logical names the shell looks up: 26 raster icon names (such as folder.documents and document.pdf), 100 symbol.* names, the font roles, 34 cursor names and the wallpaper. The lists are the constants RASTER_NAMES, SYMBOL_NAMES and CURSOR_NAMES in cupertino-assets (crates/cupertino-assets/src/name.rs). A name no code looks up may be left out.

Build your own pack

  1. Create a directory, for example ~/.local/share/cupertino/assets/my-pack/, and make it the pack: point CUPERTINO_ASSET_DIR at it, or install it directly as ~/.local/share/cupertino/assets.

  2. Copy manifest.json from the example above; set version to 2 and a name.

  3. Fonts: put your UI family in fonts/ and set fonts.ui.family to its family name. Add fallback faces for the scripts you need.

  4. Icons: for each logical name you want to replace, add an entry (raster, svg, symbol or theme). Rasters are RGBA PNGs at the sizes the shell asks for. Symbols are single-colour SVGs on a transparent background with a square viewBox and no hard-coded colour; the shell tints them. Names you skip come from the host theme.

  5. Cursors: install or copy a freedesktop cursor theme (a directory with index.theme and cursors/) that provides the 34 CSS cursor names (default, pointer, text, grab, not-allowed, the *-resize names, and so on; aliases may be symlinks) and set cursors.theme to its directory name. default or left_ptr is the only mandatory name.

  6. Wallpapers: add wallpapers.default (light, optionally dark), large enough for your displays, and credit the author in your credits file.

  7. Check it:

    cupertino appearance assets check <dir>
    

    It prints the problems of the pack, then for every logical name which pack or fallback provides it, and lists the names that fall back. It fails (exit 5) only when the manifest cannot be read, is not valid JSON or has an unsupported version, never because assets are missing. From a checkout, cargo run -p cupertino-cli --bin cupertino -- appearance assets check <dir> runs the same; the older cupertino-assets check <dir> still works and names the command that replaces it. Then start a nested session with CUPERTINO_ASSET_DIR=<dir> and look at the dock, the file manager, the settings app and the control panel.

  8. Share it (optional): ship the directory as a package that installs to /usr/share/cupertino/assets/<name>/. A pack that contains other people’s artwork must keep their licence files next to it.

Licences

The pack’s content has its own licence; it is separate from the licence of the source code (GPL-3.0-or-later, or MPL-2.0 for the cupertino-assets crate). The original icon pack in data/assets/cupertino is first-party artwork under GPL-3.0-or-later, with its LICENSE and CREDITS.md beside it; it is not part of the MPL-2.0 crate. Do not add third-party assets to this repository; distribute them as a pack.

Roadmap

Phase assessment recorded on 2026-11-09 against merged commit 5a4f015f; desktop quality reassessed on 2026-11-10 from an installed-session recording and maintainer reports. Phases 4 and 6 and the desktop quality status updated on 2026-11-12 at b030dced. Phases 1–3 have recorded completion audits. Phases 4–6 remain incomplete. Phase 7 has not started. Hardware acceptance is a separate gate and remains open. The desktop quality backlog records 31 open issues (2 fixed in code and awaiting the installed-session check), one resolved by design and the closed OBS capture regression; implementation coverage below is not installed-session acceptance.

This assessment compares the phase criteria, merged source, packaging and issue checklists. Results recorded here belong to their commits, and a recorded result does not replace a hardware run.

Phase 1: baseline and trust

Completed for the agreed scope, WP-00 and WP-01. The contracts registry, layer graph and input replay exist. Supervised shell roles and session-bus mutation checks were covered. The dock and lock regressions found after the phase audit were fixed before the recorded green CI run on November 2.

Source: docs/architecture/contracts.yaml, crates/cupertino-layers and the server’s shell role handling.

Since the audit, server runs wait for the events they check rather than for a fixed time. The CI build and test jobs run in pinned Arch containers.

Remaining security and coverage debt stays visible in #28 and #53. Completion of the baseline does not establish isolation from every same-user application.

Phase 2: transport and scene

Completed for the agreed scope, WP-02, WP-03 and the GLES half of WP-04. The standard Wayland client, neutral scene model and render API are merged. Layer rules keep the public toolkit separate from the private shell protocols. Settings and Files gained damage submission.

Source: crates/cupertino-wayland-client, crates/cupertino-scene (its renderer module) and the server’s scene code. The old client adapter is gone.

Since the audit:

  • Every surface the server shows (windows, subsurfaces, popups, layer, lock, X11, cursor, drag icons and input-method popups) is told which outputs it is on through wl_surface.enter and leave. wl_compositor version 6 sends each surface its preferred buffer scale and transform, beside the exact fractional scale.
  • A window across two displays takes the scale of the display that holds most of it, and changes only when another holds clearly more, so it does not switch back and forth at the seam.
  • Displays keep a scale model with size choices, check a whole arrangement before applying it and roll it back if it fails, recover when a display goes and restore its windows when it returns. See Displays and GPUs.
  • A window’s toolbar row can be a synchronized subsurface (app effects version 11), so content scrolls behind the toolbar glass with a soft edge under it. Reduce Transparency gives the row a solid fill.
  • Click catchers and scrims are single-pixel buffers the compositor stretches, so they cost no full-output upload.

Frame scheduling, presentation tracking, scene serialization, dirty-region propagation and asynchronous resource preparation moved to Phase 6. Vulkan and comparisons between renderer backends remain deferred. Damage submission alone does not prove that Files meets its frame-time target (#40).

Phase 3: CupertinoKit core

Completed for WP-06 and the CPU half of WP-07. Runtime, layout, text editing, controls, CPU rendering, themes and AT-SPI are merged. Counter, Forms, Virtual List and Editor have headless event traces and ran on Cupertino and a second compositor. The virtual list bounds work and memory for 50,000 rows.

Source: crates/cupertino-kit, crates/cupertino-ui-test and crates/cupertino-wayland-client. See Get started with CupertinoKit.

Since the audit, Kit gained:

  • pointer and scrolling input: axis sources, acceleration profiles, kinetic scrolling timed from each event’s own timestamp, and overlay scroll bars;
  • text input: inline composition, grapheme-safe input-method edits, multi-click and drag selection, a caret drawn as an overlay on device pixels, and a steady caret option;
  • one table of control sizes, a search field capsule for fields that sit on a material, and glass buttons;
  • menus and popups that open, track and close under touch;
  • a CPU renderer whose incremental frames are pixel-identical to full frames.

GPU rendering and per-node GPU resource retirement belong to the deferred renderer work. External CJK input methods remain out of scope (#24). Core accessibility does not complete the app migration checks in Phase 4.

Phase 4: apps and portals

In progress, WP-08, WP-09 and WP-10. Updated on 2026-11-12 at b030dced. The Kit migration and feature implementations listed below exist, but the installed session has functional and presentation gaps. The implementation is not complete for daily use: the desktop quality backlog and the installed-session and hardware checks below remain acceptance requirements.

Implemented:

  • Every Cupertino app and shell component draws through Kit. Settings (its old painter and window modules were deleted in #92), the osd, controlcenter, launcher, menubar and notifications components were already on it; the Dock (#109), the application switcher and the overview’s chrome (#112), login and lock (#110) and the screenshot tool (#111) now are too. The authentication prompt (cupertino-prompts) and the portal’s colour picker (cupertino-screenshot) draw with Kit too; the screen-sharing item is a status item that the menu bar draws with Kit. Kit menus share one session-bus connection per app. What runs on CupertinoKit tracks the entry points.
  • Files runs on Kit and the old window is deleted (#46). Removable media mount, unlock and eject from the sidebar; the encrypted-device and policy checks on hardware remain (#65). Search widens its field while it runs and shows No Results when nothing matches (#39). Drops onto folders, places, the Trash and the open folder, drags out with an image of the items (#68), file-type icons, thumbnails, the toolbar’s View, Tags and Action pop-ups, the rubber band, disclosure triangles, click-to-rename, a clickable path bar and transfers off the window’s thread with progress and Stop are in (#108).
  • The overview lays out windows below its desktops strip without overlap, with room for each title (#67). Menu bar and control panel interaction gaps are fixed (#113, #114), and notification cards use materials, wrap their bodies and scroll in the centre (#115).
  • Portals provide Settings, FileChooser, ScreenCast, AppChooser and Screenshot, with app icons, activation tokens, screenshot retry, colour picking, remembered screen shares (Forget in Settings, file locking between the portal and Settings), upright captures of rotated displays and the requesting app named in screen-sharing consent (#116). The keyring unlocks at login and at the lock screen (#117), the authentication prompt names the requesting app, and log out, restart and shut down can reopen windows at the next login (#37).
  • Accessibility audit (#30), building on the screen-reader checks of #93: every Kit surface, Files included, is checked by a shared audit on every settled frame, against a stand-in reader that follows the AT-SPI bridge’s rules. Speech and braille with a real reader are checked by hand. Settings has a Screen reader switch and Super+Alt+S toggles the reader; long labels and footnotes wrap (#35).
  • Frame time at 4K (#40): Files and Settings repaint only what changed. Selection, hover, the caret, the search field and renaming in Files, and switches and sliders in Settings, meet 8 ms at 3840×2160 at scales 2 and 1.5, and so does scrolling a Settings pane at its default window size (a long pane fits a 4K window unscrolled); a Settings pane switch or search and closing the Files search field miss on one or two frames, and scale 1 misses more often. Scrolling the Files list, opening a large folder and the search keystroke that fills the list take 34–59 ms a frame with the window filling a 3840×2160 output (the GPU plan’s step 0 measurements), as they repaint most of the window. Meeting 8 ms there needs a scroll blit or the GPU composition planned for Phase 6, pending maintainer acceptance. Frame time has the measurements.
  • Look and materials: windows, menus, the Dock, the menu bar, toolbars and the control panel draw on glass materials with their Reduce Transparency and Increase Contrast recipes, and text on glass follows the tone of what is behind it. Windows have a hairline outline and an inner rim, inactive windows use their own recipes, and the light window background is white. The control panel is a grid of separate glass tiles with detail views. The launcher sits on a dimmer material for large panels, and the menu bar’s text lies sharp on the wallpaper with no halo under it. The apps, folders, documents and the Trash use the project’s own icon pack.
  • Launcher: one panel for search and the application browser, which the Dock opens. Its providers and previews can be cancelled, choosing a running app brings it forward, its status announcements wait until the results settle, and its icons load off the event loop. Its frame budgets are measured in CPU time.
  • Files has a column view, a preview window, tabs and tags, and its context menu groups the view modes in a Show As submenu. Files and Settings scroll their content under the toolbar row, Settings panes on the window background.
  • The window buttons the server draws, the revealed title bar of a full-screen window included, are exposed to assistive technology through AccessKit, with presses accepted only while a button is shown, enabled and unlocked.
  • A popup grab ends whenever the keyboard moves outside it: to a layer surface such as the launcher or the control panel, the lock screen, the authentication prompt or another window.

Since 2026-11-09:

  • Control animation: switches, sliders, segmented controls and glass buttons move into their new states instead of jumping, popovers grow out of their anchor on a spring and shrink back into it, windows scale in as they open and fade and shrink as they close, and alerts pop in. Each follows Reduce Motion. Animations step to the time their frame reaches the screen, carried by the frame callback.
  • Glass for system dialogs: the authentication prompt is an alert 260 pt wide on panel glass, the sharing, screenshot and open-with prompts and Settings’ About are glass panels whose title bar is only their buttons, the consent panel is an alert on glass and the lock screen draws a chromeless capsule field. A window that is one panel has the sidebar’s glass. The log-out confirmation still uses the old panel (#156).
  • Keyring prompter: cupertino-prompts asks the keyring’s password questions in the authentication prompt’s panel and returns the password through the keyring’s secret exchange. It runs as a built-in program that holds the prompt role, and the package installs it. Its exchange keeps the password when the shared value starts with a zero byte, and it replies to each question before the answer goes on to the keyring daemon, so the daemon always stops prompting. When the default keyring is not the login keyring, which is the only one login unlocks, it asks once whether to copy that keyring’s items into the login keyring and make the login keyring the default; a decline is remembered.
  • Dock filtering: only applications get tiles: those pinned, with a desktop entry the desktop shows, or showing a main window. Dialogs and other windows with a parent, portal choosers, authentication agents, helpers, background services and shell processes stay out of the dock.

The earlier menu/control panel fixes and glass implementations listed above do not close the newly observed or reported failures: dropdown cursor ownership, control panel contrast and service compatibility, inconsistent materials and interaction motion, sidebar bounds and Files toolbar/search layout remain open. Notifications, dock behavior, Trash, preview, cursor sizing and the inverted Delay until repeat setting also need the checks recorded below. Key repeat itself works, as clarified by the maintainer.

Still required:

  • Resolve and verify the 31 open desktop quality issues, each tracked by its own GitHub issue (#162 to #192): window/input/menu behavior (DQ-01–09), materials/motion/scrolling (DQ-10–14), control panel/notifications/dock behavior (DQ-15–20), Files/Trash/preview (DQ-21–27), Settings presentation (DQ-28–29), discovery of applications installed during the session (DQ-30), stale menu-bar status-menu actions (DQ-32) and XWayland dragging of Electron windows (DQ-33; native Wayland dragging has a verified workaround). The Electron titlebar policy (DQ-31) is closed by decision, and menus covering the dock (DQ-09) are resolved by design.

  • Preserve the OBS buffer-negotiation fix in fe28a392. The locally rebuilt portal produced the review recording after the fix; browser sharing and the remaining output, performance and package checks are still required.

  • Verify in an installed session and on hardware:

    • browser file choosing and screen sharing through the portals;
    • Orca speech and braille, and Orca and Accerciser on the window buttons the server draws;
    • USB and LUKS media (#65);
    • PAM logins and the keyring;
    • suspend and console (VT) switches;
    • display hotplug and a rotated monitor, including unplugging and replugging with windows, full-screen windows and the lock screen up;
    • two displays at 60 Hz and 120 Hz, with the overview staying smooth;
    • the pointer staying smooth on DRM while an app is stopped (kill -STOP);
    • the lock screen on two displays, with nothing unlocked showing during a plug or unplug;
    • the output events xwayland-satellite receives, read with WAYLAND_DEBUG;
    • the pkexec authentication scrim as a single-pixel buffer, read with WAYLAND_DEBUG;
    • menus and popups under a real touch screen;
    • a window’s toolbar scale across two displays of different scales;
    • the launcher’s frame budget in a release build on an idle machine.

    The installed-session check of the portals, polkit and credential services is tracked in #23.

  • Maintainer decisions on the items the reviews left open, including #40’s measured state.

  • The phase-end review.

Phase 5: command line, diagnostics and SDK

In progress, WP-14, WP-16 and WP-11.

The cupertino command ships as /usr/bin/cupertino with the groups appearance, diagnose (with events and export), desktop, shell, dev, dev-folder, sdk, version and completions, human, JSON and JSON-lines output, defined exit codes, completions and manual pages generated from its registry. Every process records diagnostic events in a bounded store. cupertino-assets check remains as a deprecated program. The C ABI has a headless runtime, generational handles, panic containment and symbol, header and layout baselines; the cupertino-kit package ships its library, header and pkg-config file.

Source: crates/cupertino-cli/src/lib.rs, crates/cupertino-cli/src/diagnostics, crates/cupertino-diagnostic-events, crates/cupertino-ui-abi and packaging/arch.

Still required:

  • Extend the C ABI to windows, nodes and UI events, and run an interactive C application (#122, #123).
  • Complete the phase-end review. See The cupertino command for the commands available today.

Phase 6: hardware and distribution

In progress, WP-05, WP-15 and WP-13.

Implemented in code: per-card DRM output handling and cross-card copies, render-GPU selection, explicit sync when supported, VT resume and GPU-reset recovery. Signed Arch repositories and keyring checks exist; going back to a release is pacman -U from the cache. The live ISO has VM boot evidence. The release workflow signs the ISO checksum and requires the checked-in release-key fingerprint.

Source: crates/cupertino-server/src/backend, packaging/iso, packaging/keyring and .github/workflows/release.yml.

Still required:

  • Finish output-presenter scheduling carried from Phase 2, atomic failure diagnostics, scanout reason counters and per-output metrics.
  • Run the Intel, AMD, NVIDIA and hybrid-GPU hardware matrix, including multi-monitor suspend, VT switching, capture revocation and GPU reset with clients alive.
  • Add touch-screen input to the compositor. crates/cupertino-server/src/backend/input.rs opens mice, touchpads and pointing sticks but not touch screens; Kit’s menus and popups already handle touch.
  • Confirm offline master-key custody, distribute the public release key, and record a complete install, reboot, login and recovery run. No hosted package repository is published.
  • Implement cupertino system update check|plan|apply|rollback with snapshots, receipts, matched kernel images and interrupted-update recovery. The current pacman/ext4 path does not satisfy this criterion.
  • Complete installer encryption, ISO reproducibility, SBOM and signed-manifest work, then the phase-end review.

Since 2026-11-09:

  • Idle CPU: a headless session sleeps until a frame, timed work or the end of its run is due, as the display backend does. Settings watches and Files’ places and folder listings wake for changes, not for files being opened or read, frame clocks, the launcher and the control panel step once per frame their window gets, and the screenshot overlay asks for a frame only when its look changes.
  • Frame timing: --frame-stats writes each headless frame’s compose, render and glass times, the blurs made and reused and the input-to-present latency, timing the glass passes with GPU timer queries where the device has them. Animation is sampled at presentation time.
  • Damage and blur reuse: a layout damages only the nodes it moved or that paint anew, a configure that changes nothing draws nothing, and a frame whose glass regions alone changed repaints none of the window. A shm buffer committed without damage keeps its texture instead of being uploaded again. A glass backdrop is blurred again only when what lies under it changed, sidebars of one material keep one blurred backdrop each, and a blurring region captures only the framebuffer around it.
  • Profiling: samply, perf, heaptrack and CUPERTINO_PROFILE timelines show where time and memory go. The installed session still shows stutter as the launcher and the overview close (#158); frame scheduling and dirty-region propagation remain in #124 and #125.

NetworkManager and BlueZ are the shipped ISO and installed-system backends. Cupertino’s network and Bluetooth daemons remain available for development; they do not establish replacement parity. See Architecture, Displays and GPUs and Signed updates.

Desktop quality acceptance

Open, assessed 2026-11-10 and rechecked on 2026-11-12 at b030dced. At that commit 16 items are open (DQ-08 included: its 0.35 s delay is in code, but submenus are still reported slow on the installed session), 10 partly met, 3 need only the installed-session check, 2 are fixed and await that check (DQ-02, DQ-13), and DQ-09 is resolved by design: menus may cover the dock, staying within the display and flipping or sliding at its edges. The status table gives each item’s verdict, fixing commits and GitHub issue. The complete backlog distinguishes recording evidence, maintainer reports and follow-up inspection, with priorities and acceptance checks for all 32 items. It includes titlebar long-press maximization, cursor scaling, the inverted Delay until repeat setting (key repeat works), slow submenus, missing context-menu behavior, sidebar bounds and leaks, unreadable or incorrect control panel state, Edit Controls dismissal, the dock’s bottom-edge gap, notification wording/dismissal, Trash emptying, preview activation/flashing/placement, thick scrollbars and material/motion inconsistencies. It also records the additional Files toolbar/title, sidebar clipping, submenu placement, Applications, Bluetooth naming and wallpaper-preview findings, plus startup-only launcher indexing that hides applications installed during the session (DQ-30) and XWayland dragging of Electron windows, tested with ChatGPT Desktop (DQ-33). Native Wayland dragging passed the maintainer’s follow-up test; the app-specific launch flag is a workaround, and the remaining DQ-33 acceptance checks stay open. The Electron titlebar policy (DQ-31) is closed: applications that draw their own titlebar keep it. A live D-Bus trace also confirmed stale action IDs in the ChatGPT status menu (DQ-32), affecting Open and reported Quit actions.

P1 items are the next functional acceptance work; P2 items remain part of the intended desktop experience. A fix needs focused automated coverage where practical and an installed-session check at an exact candidate commit. Do not close these items from a headless screenshot or the presence of a glass recipe alone. The OBS black-capture regression CAP-01 is fixed; that does not close this gate.

Daily-driver acceptance

Open. None of the ten recorded hardware acceptance criteria has complete evidence. VM checks cover parts of login, graphics, keyboard layouts, X11 and service integration. They do not close the hardware gate.

Required evidence includes login with VT and suspend cycles, an eight-hour application soak, NVIDIA presentation, GPU-reset recovery, browser portals, audio device switching, mixed-scale Wayland and X11 clipboard use, keyboard layouts, network and Bluetooth, and five working days without a compositor crash or session loss. The desktop quality acceptance gate above must also pass. Run the release checklist against one exact candidate and record blocked checks explicitly.

Phase 7: AI and voice

Not started, WP-17, WP-18 and WP-19. The planned scope is a per-user AI service, local and user-supplied providers, context actions, local voice and toolkit APIs. There is no shipped implementation to mark complete.

GPU rendering in applications

In progress (#155). Files windows, Settings, the dock and its overview and the launcher draw on the GPU and hand their windows over as dmabufs; the small, rarely repainted and must-draw surfaces (menu bar, banners, OSD, the control panel, screenshot, portal dialogs, lock screen, login, the desktop’s items) stay on the CPU in shared memory; third-party applications start on the CPU and move to the GPU once a window is large or busy. The design is in GPU rendering: shared drawing maths frozen once, retained layers in the toolkit, surface classes that keep small and must-draw surfaces on the CPU, a thin GPU layer of our own with an OpenGL ES backend first and Vulkan only when a measured budget needs it, buffers handed over as dmabufs with explicit synchronisation, and the CPU renderer kept as the standard it is tested against and as the fallback. The steps, their gates and the checklist are in docs/plans/gpu-rendering.md; the rules every rendering change keeps are in docs/architecture/rendering.md. The Vulkan half of WP-04 is steps 12 and 13 of that plan.

Deferred work

The Vulkan half of WP-04 and the Verse adapter remain deferred. X11 applications already run through xwayland-satellite; XWayland is part of daily-driver acceptance, not a deferred feature. External CJK input methods remain out of scope (#24). Translation and locale support remain open in #66.

Desktop quality and open issues

Updated 2026-11-12. This is the installed-session quality backlog for the desktop experience Cupertino targets. These issues block calling the affected interactions finished, even where their implementation or automated tests already exist. See the roadmap for the acceptance gate.

Evidence and status

The review used the maintainer’s recording 2026-11-10 00-31-22.mp4 (3:52.53, 1920×1080 at 60 fps) of an Arch Linux Cupertino session. The installed runtime and compositor reported base commit 0582a36c; the portal had the screenshare hotfix installed separately. Timestamps below are positions in that recording, not wall-clock times. The recording and extracted screenshots are local review artifacts, not files shipped with this book.

DQ-30 comes from a separate maintainer report and live installed-session inspection on the same date, with runtime base commit 0582a36c; it is not a finding from the recording.

DQ-31 is a separate maintainer test on the same date: ChatGPT Desktop lacked Cupertino’s titlebar and could not be moved by dragging through XWayland. A subsequent native Wayland launch sent a valid move request, and the maintainer confirmed that dragging works. The application explicitly requests client-side decorations. On 2026-11-11 the maintainer decided that such applications keep their own titlebar, which closes DQ-31; the XWayland move failure continues as DQ-33.

DQ-32 comes from a subsequent maintainer report and a live D-Bus trace: selecting Open ChatGPT in the menu-bar status icon sent an obsolete menu item ID. A second ChatGPT icon during the Wayland test belonged to its separate test instance and disappeared when that instance ended; duplicate icons are not established as a separate defect.

The tables below keep the 32 entries as first recorded (DQ-01 to DQ-30, DQ-32 and DQ-33); DQ-31 is closed under Closed Electron titlebar policy. Their status at b030dced is in Status at b030dced, 2026-11-12: 31 remain open, 2 of them fixed in code and awaiting the installed-session check, and DQ-09 is resolved by design. Observed means a visible symptom was found in the recording; reported means the maintainer reported it and a focused reproduction remains necessary; follow-up means source or running-service inspection adds evidence. A cursor shape does not prove a click reached another window. Without physical input timestamps the video cannot establish repeat latency, right-button delivery or submenu latency. It also cannot establish search matching correctness, accessibility compliance or which material shader ran.

P1 affects task completion, input reliability, readable controls or core desktop behavior. P2 affects presentation, consistency or discoverability. These priorities are the next-work recommendation, not a claim that other release criteria are satisfied. The original recording is compressed and downscaled relative to its captured 4K source; fine seams and physical cursor size need verification at native scale.

Status at b030dced, 2026-11-12

Each item was checked again at b030dced, 263 commits after the recording’s base: in headless sessions at scales 1 to 2 in light and dark, by reading the source. Fixed means the fix is in code and passes headless; it stays open until the installed-session check this page requires. Partial means part of the acceptance is met. Needs installed-session check means the code and headless checks pass and only the installed session can settle the item. Each open item has a GitHub issue with its remaining acceptance criteria and live-check steps.

IDVerdict at b030dcedFixing commitsIssue
DQ-01Fixed. A drag keeps the sidebar between its minimum and 400 pt and never collapses the content; the content’s minimum wins in a narrow window; View › Hide Sidebar and Show Sidebar collapse and restore it.561c0878#162
DQ-02Fixed, awaiting installed-session check. No column of the desktop shows at 1.25, 1.5 or 1.75 in light or dark; the divider strip shows the content’s own background with its tint, the line adding only its rim.2c6d4a03, 311b70b9, 14be165a#163
DQ-03Partial. Inside a menu the arrow stays and presses reach no window under it; the resize cursor still shows at a window edge just outside an open menu, and scroll routing is unverified.638505af, 76769bc1, 46a4898e#164
DQ-04Fixed. Menus on desktop items and space, Files items, space and sidebar, Shift+F10 and dock tiles; every Kit text field has one with Cut, Copy, Paste and Select All (and Paste works), the file manager’s dock tile lists its windows and offers New Window and Show All Windows, and the dock’s menu takes its rows, material and shape from the toolkit’s menu. The check on the installed session is open.1f9317a4, 59af20cd, 70338533, 4347e214#165
DQ-05Fixed. A stored delay under the shortest step shows at Short, and an interval under the fastest rate at Fast.6ad86bfd#166
DQ-06Open. A drag followed by a quick press maximizes server-decorated windows, native and X11; the double-click count ignores movement. Kit toolbars are not affected.none#167
DQ-07Needs installed-session check. The arrow is about 11 × 17 pt at scales 1, 1.5 and 2; the hardware cursor, the size setting and other toolkits are unchecked.—#168
DQ-08Open. One 0.35 s delay is in code and measures 0.32–0.40 s headless, but submenus are still reported slow on the installed session; the cause is under investigation.c8266bcd, 51c98d0e#169
DQ-09Resolved by design. Menus may cover the dock; they stay within the display and flip or slide at its edges.——
DQ-10Fixed, awaiting installed-session check. Glass on sidebars, one-panel windows, menus, popovers, the control panel, Notification Center, the launcher, the dock and the system prompts, with solid fallbacks. The log out, restart, shut down, power button and interrupt panels and the input-source switcher lie on regular glass with its Reduce Transparency and Increase Contrast recipes (33b82a9b). The inventory of material-bearing components, with each one’s call and fallbacks, is in crates/cupertino-theme/README.md (c30af0d8). A headless sweep in light and dark, plain, with Increase Contrast and with Reduce Transparency covered a Files window, the dock’s tile name and menu, a context menu, the control panel, the launcher and the input-source switcher; it found the control panel’s contrast rim faint at one pixel a point (fixed, 58a8ef85). A second sweep in the same six modes covered inactive Files and Settings windows, a notification banner and the full list, the dock’s stack as a grid and as a fan, the dock’s and a window’s Empty Trash alert, a popover in a window, a menu bar menu, the volume overlay, the screenshot toolbar, the application switcher, the launcher’s app grid, the control panel while editing and the four session panels on the session’s own glass, at two pixels a point and, for what has a rim or hairline, at one. It found a notification card’s contrast edge faint at one pixel a point (fixed, f8624e3c), a session panel with no edge over a window of its own tone with Increase Contrast (outlined, d6f90861) and the inventory’s row of the dock’s stack naming a call the stack no longer makes (29c154cb). Left as they are, each following its material’s recipe: the volume overlay and the application switcher have no edge over a window of their own colour with Reduce Transparency, and the switcher’s grey label is about 3.5:1 over its light glass. Not swept, because the session starts them only when installed: the authentication and keyring prompts, and a status item’s menu (it draws through the menu surface swept above); the installed-session check remains.1efc5cbc, 836afbf0, f9e86462, eb7d50e6, 14be165a, 2e277422, 1a60b3be, be1e18b0, aaf024e5, ae509ae0, e90223eb, b25e7d7b, 9c792d46, fcd2015e, 33b82a9b, c30af0d8, 58a8ef85, f8624e3c, ab1bee85, d999dad8, 29c154cb, 302d0976, d6f90861#170
DQ-11Partial. Switches, sliders, segmented controls, glass buttons and popovers animate and respect Reduce Motion; no per-component feedback specification or frame-budget run.b419d423, 7db00843#171
DQ-12Fixed, awaiting installed-session check. Stack, labels and the dock’s menu are glass with solid fallbacks; the grid stands clear of the bar at every edge, scale and with magnification (its pointer’s tip 3 pt above the bar, 8 pt off a bar at a side) and points at its tile, also where a screen edge moved it; the fan opens for small folders, its lowest row 40.5 pt above the bar; grid and fan text holds 7:1 and 4.5:1 in light, dark, Increase Contrast and Reduce Transparency.1a60b3be, aaf024e5, e8562e44, 9ed63d37#172
DQ-13Fixed, awaiting installed-session check. Overlay bars 6 pt at rest and 10 pt hovered or dragged; always-shown bars a 17 pt gutter with an 11 pt thumb, at scales 2 and 1.5.63839fc2, e0cce0c8, 53a7858e, 8b525c29#173
DQ-14Open. Sidebar rows are cut hard 12 pt under Search and slices stay visible.none#174
DQ-15Open. Labels about 1.6–2.2:1 and tracks about 1.1:1 over a bright wallpaper; Increase Contrast and Reduce Transparency are readable.none#175
DQ-16Fixed, awaiting the installed-session check. The control panel, the menu bar’s Wi-Fi and Bluetooth items and Settings find the network and Bluetooth services through one crate (the Cupertino daemons, else NetworkManager and BlueZ), show on, off, the joined network, connected devices and why a radio is unavailable, follow the services’ change signals and act through the service found.00f8a977#176
DQ-17Fixed, awaiting installed-session check. Edit Controls edits the panel where it is: each tile carries a remove mark, the controls not shown are offered under Cancel and Done, and a tile moves by a drag or the arrow keys, each operation named for assistive technology. Done stores the choice per person (controls in control-panel.conf); Cancel, Escape and the panel going drop it; a stored layout is read tolerantly and followed while the panel is open. Settings’ Control Panel pane stays for the menu bar’s items.85bf7ae0#177
DQ-18Fixed, awaiting installed-session check. The list’s heading, window title and accessible name, Settings’ hot-corner choice and its message when the service is away read “Notification Center”.732010bd#178
DQ-19Fixed, awaiting installed-session check. While the list is open a transparent surface over each output takes a left or right press outside it: the list closes and the press goes no further, as with the control panel. Escape, another surface taking the keyboard (the control panel or the launcher opening) and a click on a card close it too, and the keyboard is back on the window that had it.3ec91d6d#179
DQ-20Partial. The dock stays shown with the pointer in the gap; the tile’s label and click are lost there.bbbd25b3#180
DQ-21Partial. Width, focus, typing, results, No Results and Escape work; no scope indication or loading state, and the title collides.b0e1cc37, c204746d, b0ab3b8f#181
DQ-22Fixed. The toolbar title keeps one line ending in an ellipsis at a stable height, and draws nothing where not even the ellipsis fits.eb30d7bc#182
DQ-23Fixed, awaiting installed-session check. Files and the dock empty the home trash and the trash folders of every mounted volume that can be written, after the same alert with Cancel; an item that cannot be deleted stays in its trash and is reported, in the progress window from Files and in an alert from the dock.c6344db7, e8562e44, bbbd25b3, b5149aad, 93e73585, b0ab3b8f, c4931fc2#183
DQ-24Open. The preview sets no menus and has no parent window. The headless check is blocked by #160.none#184
DQ-25Open. No loading state; the fade is computed before the first buffer. Blocked headless by #160.none#185
DQ-26Open. The preview grows from its own centre with no source rectangle. Blocked headless by #160.none#186
DQ-27Fixed. Applications lists the session’s applications by name and icon, without configuration files, opens them, and copies but never moves their entries.975ddf53, adcb876c#187
DQ-28Fixed. An unnamed device is titled by its kind and the end of its address; rows state Connected, Connecting…, Pairing… or Not Connected; the list says when discovery runs and a failed action shows on its row.37c703ac#188
DQ-29Partial. A grid of thumbnails with captions, a ring and Loading…; the Current row draws no picture and a failed thumbnail looks like one still loading.63839fc2, a33977af#189
DQ-30Fixed, awaiting installed-session check. The launcher follows the XDG application folders (subfolders and folders made later included) on a thread of its own and reads them again once a burst of changes is quiet: entries added, changed, replaced by a rename and removed show in the results of the query on screen and in the application browser, with the query, the selection, the visibility rules and the person’s entries over the system’s kept.54922743#190
DQ-32Fixed, awaiting the installed-session check. The bar follows a status menu’s layout and property signals for as long as it shows the item, sends AboutToShow before the menu and its submenus open and reads again when asked, without waiting on the application; an open menu takes the new rows, a chosen row carries its current ID and a row that is gone sends nothing. An item whose menu appears later or moves is followed too, and the applications’ DBusMenu menus follow the same way.01cf75ca#191
DQ-33Needs installed-session check. Not reproduced headless: an X11 window drawing its own titlebar and ChatGPT under X11 both move through the satellite.none#192

Totals: 16 open (DQ-08 included), 10 partial, 3 needing the installed-session check, 2 fixed and awaiting that check, and 1 resolved by design (DQ-09). The same checks found two problems in the headless tools: the Files preview never maps in a headless session (#160), and the server’s scripted --scroll moves no view (#161).

Window management, menus and input

IDPriorityIssue and evidenceRequired acceptance
DQ-01P1Sidebar can consume the whole Settings window. Observed at 00:12–00:17; at 00:14.5 the selected pane is hidden.Divider dragging preserves a usable minimum content width. Any deliberate collapse has an explicit action and discoverable recovery. Check both Settings and Files at supported window sizes.
DQ-02P2Sidebar divider leaks the background or shows a contrasting seam. Observed boundary discontinuity at 00:12–00:17 and 00:41–00:53. The exact rendering cause is unconfirmed.Sidebar, content and separator cover the whole window without a transparent gap, at integer and fractional scales, over light, dark and moving backgrounds.
DQ-03P1Menubar dropdown exposes the underlying resize cursor. Observed at 00:45–00:50, including 00:47.5. Actual button delivery remains unverified.Open menus own pointer feedback and input. Crossing an underlying window edge does not change to its resize cursor, resize it, scroll it or activate it. Verify menu dismissal and keyboard navigation too.
DQ-04P1Context-menu coverage and behavior are inconsistent. Reported across the desktop. Files does have menus at 02:45–02:52; universal absence is not established.Inventory desktop, file items, empty space, sidebar entries, text fields and dock icons. Provide appropriate secondary-click actions, keyboard access and consistent styling where Cupertino owns the surface; preserve third-party application actions.
DQ-05P1“Delay until repeat” setting is inverted. Maintainer clarification: key repeat works; the delay control changes the wait in the opposite direction from its labels. The broader repeat malfunction reported in the initial audit is superseded by this correction.Moving toward Short decreases the wait before the first repeat; moving toward Long increases it. Verify both endpoints, intermediate positions, persistence and live application. Changing this delay must preserve the separately configured repeat rate.
DQ-06P1Long-pressing the titlebar sometimes maximizes the app. Reported intermittent behavior; not independently reproduced.A single held press or drag does not accidentally count as a double-click. Explicit double-click maximization still works, with correct time, movement, button and release handling across native and XWayland windows.
DQ-07P1Cursor is too large regardless of scaling. Reported; the video cannot establish native physical size.Default cursor size, Settings cursor-size changes, integer/fractional output scaling and movement between differently scaled displays produce consistent intended logical size and correct hotspots. Check both hardware and software cursors and native/XWayland clients.
DQ-08P2Context-menu submenus open too slowly. Reported; no precise latency measured.Define an intentional hover delay, measure it, and avoid cumulative delays through nested menus. Direct movement into a submenu is stable; keyboard opening is immediate and crossing adjacent rows does not cause flicker.
DQ-09P2Files submenus crowd the bottom work area. Observed at 02:46–02:51; actual clipping is not established.Constrain cascading menus to the usable output area, flip their direction when needed and keep every item reachable without colliding with the dock.

Materials, motion and scrolling

IDPriorityIssue and evidenceRequired acceptance
DQ-10P2UI components do not consistently use the intended glass treatment. Reported across surfaces; existing material APIs do not prove installed visual fidelity.Inventory intended material-bearing components in Kit and the shell. Apply consistent recipes, outlines, tint and foreground treatment rather than isolated opaque approximations; retain intentional solid content regions. Check active/inactive, light/dark, Increase Contrast and Reduce Transparency.
DQ-11P2Glass components lack expected interaction animation. Reported.Specify and verify hover, press, release, selection, expansion and dismissal feedback for each component. Transitions remain continuous under rapid input, meet frame budgets and respect Reduce Motion.
DQ-12P2Dock Downloads popover does not match the intended glass material. Observed conventional dark panel at 01:28–01:30; hover labels around 01:30–01:33 are separate dark capsules.Match dock popover, menu and tooltip materials to their intended designs with legible text, consistent borders/shadows and correct accessibility alternatives. Verify the actual installed rendering path.
DQ-13P2Always-visible and automatic scrollbars are excessively thick. Reported in both settings modes.Define resting, hovered and dragged thicknesses. Both modes honor the saved policy, retain a usable hit area and correct thumb proportions, and avoid layout jumps, clipping or exaggerated thickness at fractional scale.
DQ-14P2Scrolled Settings sidebar leaves an item fragment below Search. Observed around 00:55–01:05.Separate the fixed header and scroll viewport with intentional clipping/masking and padding; partially scrolled rows do not leak into header space. Keep scrolling and focus discoverable.

Control panel, notifications and dock behavior

IDPriorityIssue and evidenceRequired acceptance
DQ-15P1The control panel is unreadable over bright backgrounds. Observed white text/icons/tracks disappearing into yellow wallpaper at 00:33–00:38.Glass backing/tint and foreground adaptation preserve readable text and distinguishable controls over bright, dark and detailed content, with contrast measurements and accessibility-setting checks.
DQ-16P1The control panel does not reflect Wi-Fi/Bluetooth state. Reported; Settings shows connected Wi-Fi at 00:16–00:25 and near 02:30. Follow-up: Settings supports NetworkManager/BlueZ fallbacks, the control panel calls Cupertino’s daemons; at review time NetworkManager/BlueZ were present and the Cupertino network/Bluetooth bus names were absent. Precise panel Bluetooth text is not fully legible.Share backend discovery and state semantics with Settings. Verify actual enabled, disabled, disconnected, connected, unavailable and error states, live updates and actions against the shipped NetworkManager/BlueZ backends as well as development backends.
DQ-17P1Clicking Edit Controls closes the control panel. Reported; successful editing is not demonstrated.Enter a visible editing flow; changes persist and can be completed or cancelled. A click must not merely dismiss the panel or activate the surface behind it.
DQ-18P2Notification UI uses “centre” where “Center” is requested. Reported spelling/terminology mismatch. This is an English UI convention request, not a claim that British spelling is invalid.Use “Notification Center” consistently in English user-visible labels and accessibility names. Preserve internal protocol/configuration identifiers unless a separate compatibility change is justified.
DQ-19P1Notification Center does not dismiss on click-away. Reported.An outside click dismisses the panel consistently; define whether the click is consumed. Verify Escape, focus changes, interaction with other shell panels and return of keyboard focus.
DQ-20P1Dock loses hover/focus in the gap between it and the bottom edge. Reported.The approach/reveal region includes the intended bottom margin. Pointer travel through the gap does not dismiss or hide the dock; moving genuinely away does. Check auto-hide, magnification, popovers and multiple display arrangements.

Files and preview

IDPriorityIssue and evidenceRequired acceptance
DQ-21P1Files search has a crowded, faint toolbar field. Observed at 02:04–02:09. No completed query/result sequence establishes a matching/indexing failure.Opening search reserves usable width and obvious focus, avoids collisions, accepts keyboard input, updates results and explains scope, loading, no results and clearing. Check long folder names and small windows.
DQ-22P1Long folder title wraps into toolbar controls and the first file row. Observed at 01:55–02:09.Keep a stable toolbar height; truncate long titles with their full path available separately. Title, controls, search and content never overlap during resizing or search animation.
DQ-23P1Trash cannot be emptied. Reported; no destructive reproduction was performed during the audit.Empty Trash is discoverable from the intended Files/dock surfaces, requires the intended confirmation, removes selected trashed content and updates counts/state. Cover empty Trash, errors, cancellation and mounted-volume trash without touching unrelated files.
DQ-24P1Quick preview changes the menubar options unexpectedly. Reported.Preview retains the intended relationship to the source Files window, exposes only intentional preview actions and restores the source menubar/focus on dismissal. Avoid transient activation of unrelated menus.
DQ-25P1Quick preview flashes the file. Reported; loading, activation and repaint causes remain unverified.Opening, replacing and closing preview do not flash the original file/window or stale content. Show deliberate loading feedback when necessary; stress rapid selection and slow preview providers.
DQ-26P2Quick preview opens away from the previewed file. Reported.Define and implement placement/animation relative to the selected item, constrained to the correct output’s usable area. Verify scrolled lists, grids, columns, multiple displays and dismissal back to the source.
DQ-27P2Applications destination exposes raw launcher/configuration filenames. Observed at 02:19–02:20.A user-facing Applications destination presents resolved names and icons and launches the right app; alternatively label a raw launcher directory explicitly. Do not mix incidental configuration files into an application browser.

Settings presentation

IDPriorityIssue and evidenceRequired acceptance
DQ-28P2Bluetooth devices are difficult to identify. Observed address-only Nearby Devices list around 02:34. Unnamed peripherals may legitimately have no friendly name.Resolve names when available, label discovery/pairing/connection states and provide clear actions and errors. Use an understandable fallback for anonymous devices.
DQ-29P2Wallpaper chooser lacks useful visual previews. Observed text-heavy current/choice rows at 00:29–00:53.Provide a current-image preview and selectable thumbnails, retain accessible names and show loading/errors for missing or unreadable images.

Launcher application discovery

IDPriorityIssue and evidenceRequired acceptance
DQ-30P1Applications installed during a session remain absent from the launcher. Reported after installing chatgpt-desktop; follow-up confirmed a valid, visible desktop entry and startup-only application indexing.Search and the application browser reflect desktop-entry additions, changes, atomic replacements and removals in the active XDG directories without a launcher restart or logout. Preserve visibility rules, user-over-system precedence, the active query and responsive input. Add regression coverage and verify package install/update/removal in an installed session.

To reproduce, start Cupertino and its launcher, install an application that provides a desktop entry, then reopen launcher search and the application browser and search for it. The reported case used chatgpt-desktop 26.1103.60933-1 on Arch Linux in the installed TTY session, at 3840×2160 with scale 2. The package already supplied /usr/share/applications/chatgpt.desktop, /usr/bin/chatgpt and /usr/share/pixmaps/chatgpt.png; no user override hid the entry. desktop-file-validate found no errors, and GLib resolved it as visible.

Source inspection at 0582a36c (when the launcher was a program of its own) found that its startup constructed the model with Launcher::from_system(config). crates/cupertino-launcher/src/engine.rs indexes the XDG application directories there; set_entries had no production caller, and no runtime catalogue watcher or refresh was wired into the launcher.

Workaround performed: restart only the affected session’s launcher component (cupertino shell restart launcher, which goes to that session’s own server), forcing a fresh scan. The replacement was verified in the server log; the compositor, the other components and open applications stayed running. This workaround does not close DQ-30.

Electron window dragging through XWayland

IDPriorityIssue and evidenceRequired acceptance
DQ-33P1ChatGPT cannot be dragged through XWayland. Reported and tested by the maintainer on 2026-11-10, originally as part of DQ-31. Native Wayland dragging subsequently passed in a separate profile. Other Electron applications remain unverified.Fix dragging through XWayland for windows that draw their own titlebar. Preserve working native Wayland movement, client controls and application drag regions. Verify both backends separately, including release, maximize/restore and output scaling.

To reproduce, launch ChatGPT Desktop under its X11 backend in the installed Cupertino session, then press and drag in its own top bar. The maintainer could not move the window. Expected: the drag region moves the window until release.

The reported case used chatgpt-desktop 26.1103.60933-1 with installed Cupertino 0.1.0-1, runtime base commit 0582a36c, and a 3840×2160 display at scale 2. Process inspection identified the original run’s X11 backend through XWayland. A separate profile launched with --ozone-platform=wayland created a native Wayland toplevel and sent xdg_toplevel.move with the serial of a still-held left-button press. The maintainer confirmed that this test window moves when its top bar is dragged. This verifies a workaround for ChatGPT dragging; it does not establish compatibility for all Electron applications or diagnose the XWayland failure.

For future launches, the installed /usr/bin/chatgpt wrapper reads ~/.config/chatgpt-flags.conf, with one flag per line. It does not read ~/.config/electron-flags.conf. The verified backend flag is now saved in the app-specific file:

--ozone-platform=wayland

Quit the existing ChatGPT process and reopen the application for the flag to take effect. An already running process retains its backend. This workaround does not require disabling the sandbox or GPU acceleration.

IDPriorityIssue and evidenceRequired acceptance
DQ-32P1ChatGPT’s menu-bar status menu shows actions that do nothing. The maintainer could neither reopen the window nor quit from the menu. A live trace captured Cupertino sending clicked for item 3 while the application’s current menu revision 18 used 137 for Open ChatGPT and 139 for Quit.Status menus follow layout/property changes and refresh before opening when needed. Displayed rows and dispatched actions use the same current menu IDs and exporter. Verify Open and Quit after application state changes, including menu replacement, and verify cleanup when an instance exits.

To reproduce, start ChatGPT Desktop, use it until its exported status menu changes, then open its menu-bar icon’s menu and choose Open ChatGPT or Quit. The reported menu remained visible but its actions had no effect. The captured Open event used an ID absent from the current layout, explaining that failure. Quit was reported by the maintainer; it was not invoked during inspection because it would terminate the active application.

In the menubar component (crates/cupertino-menubar/src/worker.rs), follow_status_item reloads the menu when the status item’s icon, title, status or tooltip changes. sni::item_changes does not follow the menu’s own LayoutUpdated or ItemsPropertiesUpdated signals. crates/cupertino-menubar/src/routing.rs also ignores AboutToShow for status menus. Consequently, a DBusMenu replacement can leave the visible menu and its activation IDs stale even while the status icon remains valid. This path uses D-Bus and is separate from the X11/Wayland backend selection in DQ-33. No permanent fix has been applied.

Closed Electron titlebar policy

DQ-31 — Electron windows use their own titlebars: closed by decision on 2026-11-11. A window whose client asks for client-side decorations keeps its own titlebar and window controls. Cupertino draws its titlebar and controls only for windows that ask for server-side decorations or make no request. It does not force its titlebar onto such a window or lay its controls over the client’s content.

These applications turn off the native frame (Electron’s titleBarStyle: "hidden" with titleBarOverlay), draw their own window controls and lay out their header around them. A forced titlebar would stack two titlebars, and overlaid controls would duplicate the client’s controls or cover its content, both of which the acceptance excluded. Electron’s Linux build gives the compositor no description of that layout, so Cupertino cannot place its controls to fit it. Applications that want Cupertino’s controls over their content request the unified titlebar style of cupertino_app_effects_v1.

Evidence: the native Wayland trace of ChatGPT Desktop shows zxdg_toplevel_decoration_v1.set_mode(1) (client-side) answered by configure(1). Claude Desktop 5.1231.2 (Electron 45), running as a native Wayland client, creates its main window with titleBarStyle: "hidden" and titleBarOverlay: true and shows its own titlebar in the same way. XdgDecorationHandler::request_mode in crates/cupertino-server/src/handlers.rs honors the request. The XWayland dragging failure from the original report remains open as DQ-33.

Closed screen-capture regression

CAP-01 — OBS black capture after selecting a source: fixed in fe28a392. PipeWire rejected buffer allocation with Invalid argument: Cupertino offered MemFd as a fixed integer while OBS’s shared-memory fallback offered a mask of supported types. The producer now offers a flags choice so negotiation intersects the supported bits. The test consumer offers an OBS-style MemPtr | MemFd | DmaBuf mask.

Validation recorded before merge: the consumer failed to stream with the old producer and passed with the fix; Clippy, formatting and layer checks passed. Only cupertino-portal was rebuilt and installed for the local trial, then restarted. The supplied recording contains desktop frames after that replacement. This closes the observed OBS black-frame regression, not all browser/screen-share, audio, output-transform, performance or packaging acceptance checks. The local binary replacement is not a new versioned Arch package and can be overwritten by a package update.

Completion gate

Implement the P1 fixes before broad visual polish, while keeping related rendering and interaction work together. Each item needs a focused regression test where practical and an installed-session reproduction of its acceptance checks on an exact candidate commit. Use representative light/dark backgrounds, integer/fractional scaling, native and XWayland applications and the relevant accessibility settings. Compare material and animation behavior against an explicitly chosen reference; neither existing glass code nor this recording alone establishes the intended desktop fidelity.

Keep this list open until evidence is recorded per ID. Resolving CAP-01 does not resolve the other entries or complete the daily-driver gate. No additional must-have feature inventory beyond the recording findings and the maintainer’s reports has been inferred.