Platforms & Compatibility
PAM Desktop has one render core and three backends. Layout, interaction, animation, navigation and modules are shared; each backend implements the same retained-mode contract against GTK 4, AppKit or Win32. This page is honest about what was run where, so you can plan which systems to ship on, and explains how the PHP package and the native host agree on what they support.
Status by system
Section titled “Status by system”| System | Backend | Status |
|---|---|---|
| Linux | GTK 4 | Reference. Every example and feature was run and checked here. |
| macOS | AppKit | Runs, verified in a macOS 26 (x86_64) virtual machine without a GPU. Not run on Apple Silicon or real Mac hardware. |
| Windows | Win32, Direct2D, DirectWrite | Never run on Windows. Written against the contract and type-checked by cross compilation; expect the first runs to need fixes. |
Two things were not verified on Linux either: the accessibility tree with a real screen reader, and global shortcuts through the Wayland portal (X11 key grabs were verified).
Features by system
Section titled “Features by system”“Yes” was run and checked. “Written” means the code is in the backend and type-checks but has not run on that system.
| Feature | Linux | macOS | Windows |
|---|---|---|---|
Hot reload (pam desktop dev) |
Yes, ~315 ms from save | Yes | Written |
| PHP found or installed by the host | Yes (PAM runtime) | Yes (PAM runtime) | Written (windows.php.net) |
pam desktop build |
Yes | Yes: directory and DMG | Written |
| Font family lists, packaged fonts | Yes | Yes | Written |
overflow-wrap, word-break |
Yes | No | Written |
hyphens: auto |
Yes | No | No |
| Scrollbar gutter, width and color | Yes | Yes | Written |
backdrop-filter, modal blur |
Yes | Written, not verified on screen | Written |
Typed drag and drop, captureKeys |
Yes | Written | Written |
| Canvas paths, gradients, text; charts | Yes | Written | Written |
| Printing | Print to File checked | Written (print panel exercised) | Written |
WebSocket, Files::save, SQLite::transactionIf |
Yes | Written | Written |
| Screen capture protection | Not enforced | Written | Written |
| Accessibility mapping | Implemented | Written | Written |
- Requirements: glibc 2.35+, GTK 4.6+ (
libgtk-4-1), GStreamer plugins for media, WebKitGTK 6 only forWebView. Released hosts are built on Ubuntu 22.04 and use newer GTK features when present. - Wayland and X11: GTK chooses; your code is the same.
Window::center()andalwaysOnTop()work on X11 and do nothing on Wayland. Global shortcuts use X11 key grabs, or the GlobalShortcuts portal on Wayland. - Tray: a StatusNotifierItem; GNOME needs the AppIndicator extension.
- Dark mode: the desktop portal’s
color-scheme, with the GTK theme as fallback. Text scale and reduced motion come from GTK settings and are followed live. - Secure storage: needs a Secret Service in the session.
- Headless runs: without a D-Bus session the host disables accessibility (
GTK_A11Y=none) to avoid slow widget creation.
Verified on macOS 26.7.1 (x86_64) in a virtual machine without a GPU: core examples, hot reload, input with masks, Tab and Space, selection and copy, the default menus, a 2,000-row list, modals and sheets, window dragging, video playback, web view messages, printing to PDF, and a real application whose layout matched the Linux build. A DMG built by pam desktop build opened, and at idle the host and worker used 0.0% CPU and 41 MB each.
Not verified: blur effects with a Metal GPU, notifications shown on screen, signing, and Apple Silicon. Text wraps at word boundaries only, and the system text scale is always 1.
Windows
Section titled “Windows”The backend targets Windows 10 version 1809 and later. Each window is rendered with Direct2D and DirectWrite on a flip-model swap chain; only text inputs and WebView2 are child windows. It uses the system TLS stack and Credential Manager, UI Automation for accessibility and a named mutex for single instance. PHP comes from PAM_DESKTOP_PHP, php.exe on PATH, or the official windows.php.net build the host can install. None of this has run on a real Windows machine yet.
Host and package compatibility
Section titled “Host and package compatibility”The PHP package (pushinbr/pam-desktop) and the native host (pam-desktop) are released together and should be updated together. Before starting the worker, the host exports PAM_RENDERER_CONTRACT with its protocol range and the highest property and event identifiers it implements:
{"abi":1,"events":[80,2011],"properties":[543,2052],"protocol":[1,1]}At boot the package negotiates with it:
- Protocol. A host whose range does not include the package’s protocol stops the application before the first frame.
- Properties and events. The package never sends an identifier above the host’s ceiling. Rendering an element that needs one throws a
ProtocolMismatchExceptionnaming it, for exampleTextSpanBoxes (2028). - Modules. A call to a module the host lacks fails through the call’s failure callback.
So an older host keeps running an application as long as the screen in view uses nothing it lacks. In practice the versions match on their own:
vendor/bin/pam-desktopdownloads the host of the installed package version.- A bundle ships the host it was built with.
- Only
PAM_DESKTOP_HOST(a host built from source) can drift: rebuild it when you update the package.
Update both together with:
pam composer update pushinbr/pam-desktopVersioning
Section titled “Versioning”Package and host share one version number (for example 2.3.1), and the launcher downloads exactly that host. PAM Desktop 2 is a different product from 1.x; applications for 1.x do not run on 2.x. See Migrating from 1.x.
Reporting what you find
Section titled “Reporting what you find”If you run PAM Desktop on macOS hardware, Apple Silicon or Windows, report what works and what does not in the PAM Desktop issues. Include the system version, pam desktop --version, and the host’s standard error output with PAM_DESKTOP_DEBUG=1.