All notable changes to this project are documented in this file. The format follows Keep a Changelog.
[Unreleased]
[1.0.0] - 2026-12-01
Added
- Global shortcuts and other portal calls for a program that was started directly (no installed launcher entry):
DBusConnection.PortalAppIddeclares the application id to the desktop portal (org.freedesktop.host.portal.Registry.Register) before the first portal call on the connection;PortalCreateDesktopEntryandPortalAppNamewrite the hidden launcher entry the portal needs to recognise the id when none is installed;PortalRegistrationreports the outcome (PortalRegistrationState,PortalRegistrationResult). Without an id the portal's "An app id is required" refusal is nowPortalAppIdRequiredException, whose message says what is missing. Seedocs/linux-shell.md;tests/OnePlatform.ShortcutProofis a small program for trying it. IconImageand application icons without an installed launcher entry:Window.SetIcon(images, name)sets a window's icon on Wayland (xdg_toplevel_icon_manager_v1, bound when the compositor offers it) and X11 (_NET_WM_ICON) and returns false where the window system cannot;TrayIcon.CreateAsync(..., images)andTrayIcon.SetIcon(images, name)publish the pictures as the StatusNotifierItemIconPixmapat several sizes. Before, a tray icon had only a themed name, which a desktop could not resolve for an app that was not installed, so Plasma drew an empty clickable item and a placeholder in the taskbar. Seedocs/desktop-windows.md.NativeEnvironment.Set(name, value)sets or removes an environment variable where native libraries in the process read it (getenv) as well as for managed code;Environment.SetEnvironmentVariablealone does not reach them on Linux and macOS.tests/OnePlatform.IconProof, a small program that opens a window and a tray icon with or without pictures, for looking at a desktop's taskbar and tray.- The browser backend's page script,
oneplatform.js, ships in the package as a static web asset: abrowser-wasmapp that referencesRecursiveAI.OnePlatformpublishes it at_content/RecursiveAI.OnePlatform/oneplatform.jsand registers it as the moduleoneplatform. Seedocs/browser.md.
Changed
- Names renamed before 1.0:
ActionMap.Harnessis nowActionMap.Injected(the source for actions injected by scenarios, tests and live control; its label in reports is now"injected"instead of"harness"), andBrowserPage.Controlis nowBrowserPage.ControlAsyncsince it returns aTask. A page script that calls the exported method usesexports.OnePlatform.BrowserPage.ControlAsync. OnePlatform.Shell.MenuBarMenuis nowOnePlatform.Shell.NativeMenu, the menu typeMacDesktop.SetMenuBarandWindowsDesktop.SetMenuBartake, so it no longer shares a name with menu types in apps built on the library.PlatformModule, an unused placeholder, is removed.- Documentation and README are written for application authors: the support table, a getting-started example, and XML docs that no longer refer to types outside this package.
Fixed
- Linux tray: when a StatusNotifierWatcher starts, its owner-changed signal can arrive before it answers calls; the icon's registration is now retried (up to 10 times, 200 ms apart) instead of being lost until the watcher restarts again.
- Win32: a key message that carries no scan code (input sent with virtual-key codes only, as some automation tools do) is named from its virtual-key code instead of arriving as an unknown key, so Escape, Tab, Enter, the arrows and the letters work for such input. Text sent as Unicode packets (
VK_PACKET) no longer produces key events with a bogus key; its text arrives as before. - Win32: windows now honour
WindowOptionsfor desktop use, as on Cocoa: size limits, dialogs (Parent, owned windows), overlays (topmost tool windows placed from anchors and margins), borderless windows with resize edges, popups with a grab that ends when the application loses the foreground,StartMove/StartResize,Window.FillSolid, mouse capture,WM_IME_*composition and the rectangle Windows suggests on a DPI change.LocalSingleInstancenow works on Windows, and the second launch grants the running copy the foreground before the hand-over. Seedocs/windows-shell.md. - Cocoa: windows now honour
WindowOptionsfor desktop use: size limits (MinWidth..MaxHeight,SetSizeLimits), dialogs (Parent), overlays (Overlay, a borderless window at a window level, placed from its anchors and margins), borderless windows (Decorations = None) and popups (PlatformApp.CreatePopup, with a grab that ends on a press outside the application). Before, these options were ignored andCreatePopupthrew.Window.Role,ParentandDecorationare set.Window.Activateon a popup throwsActivationUnavailableException.Window.FillSolidsets the layer's background colour on Cocoa. Seedocs/desktop-windows.md.
Added
WindowsDesktop.ShowAsyncreports a notification Windows will not show instead of completing as if it had: for a packaged app it asks the toast notifier for itsNotificationSettingfirst and fails with the newNotificationsDisabledException(Setting: the newWindowsNotificationSettingenum,DisabledForApplication,DisabledForUser,DisabledByGroupPolicyorDisabledByManifest). It derives fromShellUnavailableException, which is no longer sealed. An unpackaged app has no notifier to ask, so its balloon is sent as before. Seedocs/windows-shell.md.Window.CanPresentPixelsandWindow.PresentPixels(bgra, width, height): show a CPU-drawn image in a window that has no graphics device. Win32 copies it withSetDIBitsToDeviceand keeps it to draw again onWM_PAINT; Wayland toplevel, layer-shell and popup windows copy it into reusablewl_shmbuffers that respectwl_buffer.release, resize with the window and draw only when a picture is presented (seedocs/desktop-windows.md); other backends reportCanPresentPixelsfalse and throwNotSupportedException.OnePlatform.Shell.WindowsDesktop: the Windows desktop services, the counterpart ofMacDesktop. A notification-area icon with a context menu (ShowTrayIcon,SetTrayMenu,TrayActivated,GetTrayBounds), balloon/toast notifications with click-to-activate (ShowAsync,CloseAsync,ActionInvoked; no buttons, which a balloon cannot have), the Common Item Dialog through source-generated COM (OpenFileAsync,OpenFolderAsync,SaveFileAsync, owner aswin32:<hex handle>inFileChooserOptions.ParentWindow),RegisterHotKeyhotkeys with press and polled release (BindAsync,Activated,Deactivated), a menu bar with accelerators on a window (SetMenuBar,ClearMenuBar; reusesNativeMenu) and screenshots of the app's own window or a region the user drags (CaptureWindow,CaptureRegionAsync, returning the newScreenshotImagewithToPng()). Anything Windows cannot do throwsShellUnavailableException. Seedocs/windows-shell.md.- Windows UI Automation for
Window.Accessibility: a Win32 window now answersWM_GETOBJECTwith a provider tree built from the window'sIAccessibilityProvider(fragment navigation, bounding rectangles, hit testing, focus, control types per Core-AAM, the properties screen readers read, Invoke, Toggle, Value, RangeValue, ExpandCollapse and SelectionItem patterns) and raises focus, property, structure, selection and notification events fromFlush(). It costs nothing until a client asks, uses source-generated COM, and runs provider calls on the window's thread.WindowAccessibility.IsSupportedis now true on Windows. Seedocs/accessibility.md.tests/OnePlatform.UiaProofandtools/uiacheck it from outside the process. Window.SetKeepAbove(bool),Window.KeepAbove,Window.CanKeepAboveandKeepAboveUnavailableException: a "keep on top" toggle for an ordinary window. X11 sends EWMH_NET_WM_STATE_ABOVE(andKeepAbovefollows the window manager's property), Win32 usesHWND_TOPMOST/HWND_NOTOPMOST, Cocoa the floating window level, the headless backend holds the state. On Waylandxdg-toplevelhas no such request, so under KWin only, a short KWin script sets or clearskeepAboveon the windows with the app's own app id and is unloaded before the call returns; other compositors throw the typed error. Seedocs/desktop-windows.md.OnePlatform.Accessibility: window accessibility.Window.Accessibility(WindowAccessibility) takes anIAccessibilityProvider, a pulled tree ofAccessibleNodes (role, name, description, value and range, states, actions, bounds, children, text with selection) with focus, hit testing and actions, and queues change notifications (NotifyFocusChanged,NotifyStructureChanged,NotifyNameChanged,NotifyValueChanged,NotifyStatesChanged,NotifySelectionChanged,Announce) thatFlushmerges and sends. On macOS it is exposed through NSAccessibility on the content view and long-lived elements, built only when an assistive technology asks. Seedocs/accessibility.md.OnePlatform.Shell.MacDesktop: the macOS desktop services, on Apple silicon: the menu bar (SetMenuBarwithNativeMenu, the application menu named fromCFBundleName), anNSStatusItemwith a menu, open, folder and save panels (NSOpenPanel/NSSavePanel, takingFileChooserOptionsand returningFileChooserResult), notifications throughUNUserNotificationCenterwith actions (DesktopNotification,ActionInvoked) and global hotkeys through CarbonRegisterEventHotKey(GlobalShortcut,Activated).LocalSingleInstancehands a second launch to the first over a private per-user Unix socket, shaped likeSingleInstance.ShellUnavailableException(aPlatformException, withServiceandRequirement) names what a missing permission or app bundle needs.TrayMenuItem.Shortcutcarries a menu item's key equivalent. Seedocs/macos-shell.md.Window.Activate(string? activationToken = null): brings a window to the front, un-minimizes it and gives it the keyboard focus, on Wayland (xdg_activation_v1, with the token a launcher passed in or one requested from the latest input), X11 (_NET_ACTIVE_WINDOWwith source and input time,_NET_STARTUP_ID, map to un-iconify), Win32 (ShowWindow(SW_RESTORE),SetForegroundWindowwith an input-queue attach fallback) and Cocoa (deminiaturize:,activateIgnoringOtherApps:,makeKeyAndOrderFront:).ActivationUnavailableException(withRequirement) names the missing protocol.WindowActivation.AllowForeground(processId)is the Windows launcher's half.ActivationRequest.ActivationTokenreturns the token or startup id a second launch forwarded, andSingleInstance.Acquirehas an overload taking the token to forward (it also forwardsDESKTOP_STARTUP_IDnow). Seedocs/desktop-windows.md.OnePlatform.DBus: a BCL-only D-Bus client (marshalling, authentication, calls, signals, exported objects, name ownership) andOnePlatform.Shell: single-instance activation, the FileChooser, Screenshot, GlobalShortcuts and Notification portals (with theorg.freedesktop.Notificationsfallback) and a StatusNotifierItem tray icon with a dbusmenu menu. Seedocs/linux-shell.md.- The platform layer: windows, input, IME, clipboard, displays, gamepads and haptics, the headless backend and
InputInjector, and the Win32, Cocoa, X11, Wayland, Android, iOS and browser backends, in namespaceOnePlatform. - Desktop windows on Wayland and X11: decorated, movable and resizable by default (
xdg-decorationserver-side frames, a client-side frame where the compositor has none,WM_CLASS/_NET_WM_NAMEon X11), application id, size limits, dialogs with a parent,StartMove/StartResize/ShowWindowMenu, keep-on-top overlays (wlr-layer-shell; dock-type_NET_WM_STATE_ABOVEwindows on X11) throughWindowOptions.Overlay, and popups with an anchor, gravity, constraint adjustment and grab throughPlatformApp.CreatePopup. Seedocs/desktop-windows.md. tools/WaylandGenand its protocol XML, which produce the Wayland protocol tables.