All posts

7 min readPost 21

Linux and macOS windows: checking a menu-bar icon without a Mac

Shipping Obituary's desktop window and tray daemon to Linux and macOS without a physical Mac on our desk meant proving visually in CI that the menu-bar icon actually rendered—and post-release testing of the real 1.6.0 DMG caught a fatal macOS 15 launch failure caused by a hidden minos 26.0 mismatch.

On this page
  1. One shared React UI across three OSes, clearly labeled preview
  2. Linux: private Xvfb and D-Bus let CI test the whole desktop flow
  3. macOS: before-and-after menu-bar diffs instead of trust
  4. Testing the shipped DMG caught a macOS 15 crash (-10825)
  5. Same-evening 1.6.1: all 8 macOS matrix jobs green

Obituary's Windows desktop edition already paired its resident tray daemon (obitd) with a Wails calendar window. When we brought that desktop experience to Linux and macOS for 1.6.0 on 21 November, we faced an awkward constraint:

We had no physical Mac on our desk—every build and verification pass ran on GitHub Actions macOS runners. How do you prove the menu-bar icon actually appears to a real user, and how do you keep a freshly packaged DMG from crashing on older macOS releases?

Between the first Linux window commit at 03:01, shipping 1.6.0 at 13:22, and shipping 1.6.1 at 18:16 to fix a macOS 15 launch crash, the entire day came down to building hard visual and binary evidence into CI.

One shared React UI across three OSes, clearly labeled preview ​

Writing three separate native UIs would guarantee settings and edge cases drifting apart. We kept the exact Windows architecture everywhere: separate window and tray processes sharing Wails v2, systray, and the same React calendar frontend.

1.6.0 added two preview desktop packages without changing any of the six existing CLI archives:

  • Linux: an Ubuntu 24.04 amd64 .deb whose window still launches from the app menu even on desktops without a system tray host.
  • macOS: a universal DMG bundling Intel and Apple Silicon slices of Obituary.app, honestly documented as unsigned/unnotarized with first-open instructions.

Linux: private Xvfb and D-Bus let CI test the whole desktop flow ​

Our Linux verification script starts a private Xvfb display, a private D-Bus session bus, and a disposable user home directory to exercise window startup, tray registration, file resurrection, and desktop notifications without touching any host display. By 05:49 the .deb packaging, XDG autostart, hidden Windows-only settings, and trayless-desktop resilience were merged.

Screenshot of the Obituary desktop window running on Linux inside a private Xvfb display, showing the Expiring soon calendar with calendar-note scheduled for tomorrow
The Obituary desktop window running on Linux inside a private Xvfb session, sharing the exact React frontend used on Windows.

macOS: before-and-after menu-bar diffs instead of trust ​

Starting at 07:47, a dozen commits hammered out native macOS packaging in Actions: linking UniformTypeIdentifiers, zipping from .app's parent directory, verifying checksums inside the package directory, and automating plutil, lipo, ad-hoc codesign, hdiutil, and --smoke.

For the menu-bar icon, we set one hard evidence standard: a running process, a ready log line, or even a standalone cropped screenshot proves nothing. Instead, CI runs a strict A/B capture:

  1. Validate bundle structure, universal slices, signing, and launch on a native macOS runner.
  2. Stop every running tray process and capture a fixed crop of the top-right menu bar (confirming no icon).
  3. Restart the tray process, capture the exact same pixel rectangle, and archive readiness state and process lists for both snapshots.

The paired capture proved it visually: empty space beside Spotlight before, crisp black tombstone icon right beside Spotlight after.

Before-and-after crop of the exact same macOS menu-bar region: top strip has no Obituary icon at 4:24; bottom strip shows the black tombstone icon left of Spotlight at 4:25
A/B capture of the exact same menu-bar coordinates on a macOS CI runner: top with all tray processes stopped, bottom after restart with the tombstone icon left of Spotlight.
Screenshot of the Obituary desktop calendar window running on a macOS CI runner above the Dock, showing macos-example.txt on 28 November
The macOS desktop window captured during the same CI graphical session.

CI evidence has clear limits—it cannot stand in for Gatekeeper prompts after a real browser download, live light/dark switching, login-item authorization, or notification permission prompts—so those stayed on a dedicated physical-Mac checklist.

Testing the shipped DMG caught a macOS 15 crash (-10825) ​

Right after 1.6.0 shipped, we ran acceptance against the exact published Release DMG (not a branch rebuild), without stripping quarantine attributes or disabling Gatekeeper, across macOS 15 and macOS 26 on both Intel and Apple Silicon.

  • macOS 26 passed cleanly: cold launch from /Applications, single-instance refocus, tray-opened populated calendar, and byte-identical ledger/graveyard preservation after removing the app.
  • Both macOS 15 machines failed outright: copying the app to /Applications and running open returned error -10825 with no window.

Running vtool -show-build against every binary inside the bundle exposed the culprit immediately:

The build never pinned a macOS deployment target—Info.plist promised macOS 12.0, yet both desktop binaries compiled with minos 26.0!

Binary inside Obituary.appCompiled minosSDK
obit-gui (both arch slices)26.026.5
obitd (both arch slices)26.026.5
CLI obit12.0—
Info.plist LSMinimumSystemVersion12.0—
Excerpt of CI acceptance logs showing open failing with error -10825 on macOS 15 and vtool reporting minos 26.0 / sdk 26.5 for obit-gui versus 12.0 in Info.plist and obit CLI
Verbatim CI acceptance log excerpt: error -10825 on macOS 15 traced directly to obit-gui compiling with minos 26.0 against an Info.plist claiming 12.0.

The same pass turned up five other real defects:

  • First-time launch did not automatically start the menu-bar tray daemon until obitd --tray was invoked manually.
  • Empty-calendar hint copy mentioned Windows Explorer right-click menus on macOS.
  • Ghost clicks: refreshing the "Recently buried" menu and removing stale rows could fire a spurious click event, resurrecting an item the user never chose.
  • Notifications lacked a dedicated helper identity, and docs lacked the exact preserved data paths after removing the app.
  • Login-item plist verification and an inconclusive arm64 retention run were flagged for physical hardware checks.
Expanded Obituary menu-bar menu on macOS 26 showing Open Obituary, upcoming/graveyard counts, Recently buried, Expiring soon, Pause, Open data directory, and Quit
Expanded Obituary menu-bar menu captured during macOS 26 acceptance.

Same-evening 1.6.1: all 8 macOS matrix jobs green ​

We documented the macOS 15 bug in 1.6.0's release notes and merged the full fix by 16:16: pinning deployment target 12.0 in CI with pre-release vtool verification, starting obitd on first app launch, giving the menu-bar helper its own notification identity, fixing the menu-refresh ghost click across all three OSes, and updating uninstall docs.

1.6.1 shipped at 18:16. Both the pre-release candidate DMG and the final downloaded Release DMG passed all 8 acceptance jobs across macOS 15 and 26, Apple Silicon and Intel, with error -10825 gone completely—leaving only the four physical-Mac checks (browser-downloaded Gatekeeper approval, manual login-item toggle, live notification allow/deny prompts, and Apple Silicon retain/resurrect verification).

All posts