[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMV48PM4TNQT4AGQAMNEMH":3,"skill-same:01M7AMV48PM4TNQT4AGQAMNEMH":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AMV48PM4TNQT4AGQAMNEMH","desktop-reference",null,"Use when reviewing a desktop app for anti-patterns, weighing contested questions (SwiftUI vs AppKit, native vs cross-platform, Electron vs Tauri, Flatpak vs Snap vs AppImage, GTK vs Qt, sandboxed vs unsandboxed, Wayland-first, Swift 6 strict concurrency, SwiftData vs Core Data vs GRDB, menu bar vs header bar), finding primary documentation and books, learning from the case studies and hard-won lessons, checking whether a platform claim is still current (snapshot verified August 2026), or needing the 'why doesn't my app feel native', 'won't launch on a user's Mac', and 'misbehaves on Linux' checklists. Companion to the other desktop-apps-macos-linux skills.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fdesktop-apps-macos-linux\u002Fskills\u002Fdesktop-reference\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: desktop-reference\ndescription: \"Use when reviewing a desktop app for anti-patterns, weighing contested questions (SwiftUI vs AppKit, native vs cross-platform, Electron vs Tauri, Flatpak vs Snap vs AppImage, GTK vs Qt, sandboxed vs unsandboxed, Wayland-first, Swift 6 strict concurrency, SwiftData vs Core Data vs GRDB, menu bar vs header bar), finding primary documentation and books, learning from the case studies and hard-won lessons, checking whether a platform claim is still current (snapshot verified August 2026), or needing the 'why doesn't my app feel native', 'won't launch on a user's Mac', and 'misbehaves on Linux' checklists. Companion to the other desktop-apps-macos-linux skills.\"\n---\n\n# Desktop Apps (macOS & Linux): Anti-Patterns, Contested Questions, Canon, Case Studies, and Currency\n\n> **Part 5 of 5** of the *Desktop Application Programming — macOS & Linux* reference (plugin `desktop-apps-macos-linux`), covering §14–§20. Sibling skills: `desktop-macos-platform` (§0–§3), `desktop-linux-platform` (§4–§6), `desktop-cross-platform-and-architecture` (§7–§9), `desktop-packaging-security-and-testing` (§10–§13). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §18 below for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference, not tutorial. Sections are independent. Three markers:\n> - **[UNIVERSAL]** — true of desktop software regardless of platform or toolkit.\n> - **[PLATFORM]** — specific to macOS or a particular Linux stack. Verify against current docs.\n> - **[CONTESTED]** — competent engineers disagree. Both cases given; don't adjudicate for the reader.\n>\n> **⚠️ GOTCHA** boxes mark the failure modes that actually cost people days.\n>\n> **The single most important framing in this document:** macOS is *one* platform with\n> *one* vendor, *one* HIG, and *one* blessed path. Linux is *not a platform* — it is a\n> family of overlapping conventions (freedesktop specs), two dominant toolkits, two\n> display protocols, three packaging formats, and a dozen desktop environments. Advice\n> that treats them symmetrically is wrong. Almost every difficulty in cross-platform\n> desktop work traces back to this asymmetry.\n\n---\n\n## §14. Anti-Patterns\n\n| Anti-pattern | Why it's bad | Do instead |\n|---|---|---|\n| Blocking I\u002FO on the main thread | Beachball \u002F frozen window; the #1 perceived-quality bug | Async everything; §8.4 → `desktop-cross-platform-and-architecture` |\n| A custom file browser inside your app | Ignores bookmarks, recents, cloud providers, sandbox, portals | Platform file dialog \u002F FileChooser portal |\n| Hardcoded colors instead of semantic ones | Breaks dark mode, high contrast, accent colors | Semantic colors and system materials |\n| Hardcoded paths (`~\u002FLibrary\u002F...`, `~\u002F.config\u002F...` literal) | Breaks under sandbox and Flatpak | Platform APIs \u002F XDG env vars |\n| No keyboard access to a feature | Fails accessibility; power users bounce | Menu item + shortcut for every command |\n| Removing focus rings for aesthetics | Accessibility regression | Restyle them |\n| Custom-drawn controls without accessibility | Invisible to screen readers | Native widgets, or implement the a11y tree |\n| Ignoring window state restoration | Feels broken every launch | Persist and restore |\n| A splash screen to hide slow startup | Hides the problem; users still wait | Fix startup; show real UI progressively |\n| Auto-update that isn't atomic | Bricked installs, unrecoverable | Sparkle\u002FOSTree\u002Ftransactional |\n| `--filesystem=home` in a Flatpak | Defeats the sandbox; reviewers reject | Portals |\n| `nodeIntegration: true` \u002F `contextIsolation: false` in Electron | Remote content gets Node — full RCE | Preload + contextBridge (§7.3 → `desktop-cross-platform-and-architecture`) |\n| Shipping an ancient Electron\u002FChromium | You ship known RCEs | Track upstream releases |\n| Polling timers at idle | Battery drain, fan noise, uninstall | Event-driven; pause when occluded |\n| One giant \"AppDelegate\"\u002F\"MainWindow\" class | Untestable, unmergeable | Layered architecture (§8.1 → `desktop-cross-platform-and-architecture`) |\n| Assuming X11 | Broken on GNOME 50+, Fedora 43+, Ubuntu 25.10+ | Test on Wayland first |\n| Assuming integer display scale | Blurry\u002Fmisaligned at 125%\u002F150% | Handle fractional scaling |\n| String concatenation for translated text | Untranslatable; wrong word order | Positional format strings |\n| Storing secrets in prefs\u002Fplain files | Trivially harvested | Keychain \u002F Secret Service |\n| Truncate-then-write the user's document | Crash mid-write destroys data | temp + fsync + atomic rename |\n| No undo | Users will not trust the app with real work | §8.3 → `desktop-cross-platform-and-architecture` |\n| Changing `CFBundleIdentifier` \u002F app ID after ship | Orphans data, keychain, licenses, store record | Choose carefully once |\n| Testing only on your own machine\u002FDE | Ships bugs on every other configuration | Matrix: macOS n and n-1; GNOME + KDE; Wayland + X11 |\n\n---\n\n## §15. Contested Questions\n\nPresent the strongest version of each side; the right answer is context-dependent.\n\n**15.1 SwiftUI vs AppKit** — §2.1 → `desktop-macos-platform`. Dividing line: SwiftUI for structure and forms; AppKit\nfor dense data, text systems, and deep window\u002Fmenu control. Nobody serious is 100% either.\n\n**15.2 Native per-platform vs one cross-platform toolkit** — Native wins on feel,\naccessibility, platform integration, and long-term maintainability *per platform*;\ncross-platform wins on total cost and consistency. The synthesis that keeps winning is\narchitecture **B** from §0.2 → `desktop-macos-platform`: shared core, native UI.\n\n**15.3 Electron vs Tauri** — §7.2 → `desktop-cross-platform-and-architecture`. Consistency and ecosystem maturity versus footprint and\npermission model. Both camps are shipping real products.\n\n**15.4 Flatpak vs Snap vs AppImage** — §10.2 → `desktop-packaging-security-and-testing`. Flatpak has the ecosystem centre of gravity\nfor GUI apps; Snap has the Ubuntu\u002Fserver\u002Fdaemon story and transactional updates but a\nsingle centralized store; AppImage has portability and no update or sandbox story. Trying\nto force one format everywhere is the actual mistake.\n\n**15.5 GTK+libadwaita vs Qt on Linux** — libadwaita gives you a GNOME-perfect app and a\nGNOME-shaped one. Qt gives you cross-desktop and cross-OS reach with a licensing decision\nattached (LGPL relinking constraints; GPL-only modules; commercial for static linking and\nLTS patches). Neither is wrong; the deciding factors are usually licensing and whether you\nalso target Windows.\n\n**15.6 Sandboxed (App Store\u002FFlatpak) vs unsandboxed distribution** — Sandboxing buys user\ntrust, store distribution, and genuine security; it costs capability (some apps simply\ncannot be sandboxed), engineering time, and — on macOS — a revenue share. Many pro Mac\napps ship both builds with different feature sets, and say so plainly on their site.\n\n**15.7 Wayland-first vs keeping X11 support** — GNOME has removed X11 code and KDE follows\nin Plasma 6.8; new apps should be Wayland-native and use portals. The counterweight: LTS\ndistributions, XFCE\u002FMATE\u002FCinnamon users, remote-desktop workflows, and accessibility tools\nthat still work better on X11 will exist for years. Support both if your users need it,\nbut *develop* on Wayland.\n\n**15.8 Swift 6 strict concurrency: too much or just right** — §3.2 → `desktop-macos-platform`.\n\n**15.9 SwiftData vs Core Data vs GRDB** — §3.3 → `desktop-macos-platform`.\n\n**15.10 Menu bar vs header-bar\u002Fhamburger on Linux** — GNOME HIG says header bar; KDE and\ntraditional-desktop users expect menus; power users and accessibility tooling both benefit\nfrom a discoverable menu structure. Pick per your target desktop and be internally\nconsistent.\n\n---\n\n## §16. The Canon — authorities and references\n\n### 16.1 Primary documentation (always prefer these)\n\n**Apple**\n- **Human Interface Guidelines** — the macOS sections specifically; the Mac patterns\n  differ from iOS in ways tutorials elide.\n- **Apple Developer Documentation**: AppKit, SwiftUI, Foundation, Security, `notarytool`,\n  \"Notarizing macOS software before distribution\", \"Adopting Liquid Glass\",\n  \"Adopting strict concurrency in Swift 6\".\n- **WWDC session videos** — genuinely the best source for new API rationale. For this\n  domain: \"Use SwiftUI with AppKit and UIKit\" (WWDC26), \"Build a SwiftUI app with the new\n  design\" (WWDC25), the privacy\u002FGatekeeper \"What's new in privacy\" series (2022–2024\n  cover app-bundle, container, and app-group protection changes).\n- **Apple Platform Security guide** — Gatekeeper, notarization, runtime protection.\n- **Swift Evolution proposals** (SE-####) for concurrency semantics; the **Swift Forums**\n  are where the real migration discussions happen.\n\n**Linux \u002F freedesktop**\n- **freedesktop.org specifications** — Base Directory, Desktop Entry, Icon Theme,\n  AppStream, MIME, Notifications, Autostart, Trash, Secret Service.\n- **XDG Desktop Portal documentation** (`flatpak.github.io\u002Fxdg-desktop-portal`) — the\n  API reference *and* the \"Reasons to Use Portals\" \u002F \"For App Developers\" pages.\n- **GNOME Human Interface Guidelines** and the **libadwaita** docs; **GTK4 API reference**;\n  **gtk4-rs book**.\n- **KDE Human Interface Guidelines**; **Qt documentation** (`doc.qt.io`) — especially the\n  licensing and release pages, which are the authoritative word on LGPL\u002FGPL\u002Fcommercial.\n- **Flatpak documentation** (sandbox permissions, manifests) and **Flathub's** submission\n  requirements.\n- **ArchWiki** — despite being distro-specific, it is the best practical reference for\n  PipeWire, portals, Wayland, systemd\u002Fuser, and D-Bus. Use it as documentation, not as\n  Arch advocacy.\n- **LWN.net** — the highest-signal reporting on Linux desktop architecture changes\n  (the accessibility\u002FNewton coverage is the reference on that topic).\n\n### 16.2 Books and long-form\n\n| Author \u002F source | Work | Why |\n|---|---|---|\n| **Aaron Hillegass** | *Cocoa Programming for OS X* | The classic AppKit text; still the best explanation of the Cocoa object model and delegation |\n| **Matt Neuburg** | *Programming iOS\u002FmacOS* series | Rigorous, precise, updated frequently |\n| **Paul Hudson** | *Hacking with Swift \u002F Hacking with macOS* | The best free practical Swift\u002FSwiftUI reference; his Swift 6 concurrency writeups are widely cited |\n| **Chris Eidhof, Florian Kugler, Wouter Swierstra (objc.io)** | *Advanced Swift*, *Thinking in SwiftUI* | The deepest treatment of how SwiftUI actually evaluates |\n| **Fatbobman (Xu Yang)** | Core Data \u002F SwiftData blog series | The most thorough independent analysis of Apple's persistence stack |\n| **Michael Tsai** | Blog | The community's institutional memory for Apple platform changes and their consequences |\n| **Jasper St. Pierre** | *Xplain* | The clearest existing explanation of how X11 actually works — read before arguing about Wayland |\n| **Daniel Stone** | \"The Real Story Behind Wayland and X\" (talk) | The canonical account of why Wayland exists |\n| **Havoc Pennington** | D-Bus design writing | Origin rationale for the desktop's IPC model |\n| **Blanchette & Summerfield** | *C++ GUI Programming with Qt* | Dated but still the best structured Qt introduction |\n| **Andrew Krause** | *Foundations of GTK+ Development* | GTK's conceptual model (GTK3-era; concepts transfer) |\n| **Jeff Johnson** | *Designing with the Mind in Mind*; *GUI Bloopers* | The cognitive-psychology basis for UI decisions |\n| **Alan Cooper** | *About Face* | The interaction-design canon |\n| **Bruce Tognazzini** | *Tog on Interface* \u002F First Principles | Where much of the Mac's interaction philosophy originates |\n\n### 16.3 Ongoing sources\n**Apple side**: Michael Tsai's blog, The Eclectic Light Company (Howard Oakley — deep,\naccurate macOS internals), Hacking with Swift, objc.io, SwiftLee, Swift Forums,\n`developer.apple.com\u002Fforums` (the Gatekeeper\u002Fcode-signing tags are staffed by Apple's\nDTS and are the definitive answer source for signing problems).\n**Linux side**: LWN.net, Phoronix (news, treat benchmarks carefully), GNOME and KDE\ndeveloper blogs (`blogs.gnome.org`, `blogs.kde.org` — KDE's \"This Week in Plasma\" is\nexcellent), 9to5Linux\u002FOMG!Ubuntu for release tracking, the Flatpak and freedesktop\nGitLab issue trackers.\n**Cross-platform**: the Electron and Tauri blogs and release notes; `areweguiyet.com` and\nboringcactus's periodic Rust GUI survey.\n\n---\n\n## §17. Case Studies and Hard-Won Lessons\n\n| Case | What happened | Transferable lesson |\n|---|---|---|\n| **Ghostty's non-native fullscreen** | Mitchell Hashimoto's terminal (Zig core, SwiftUI on macOS, GTK4 on Linux) needed \"non-native fullscreen.\" Online samples suggested a dozen lines; the real PR was +802\u002F−239. | The last 10% of *native feel* is where AppKit knowledge is irreplaceable. Budget for it, and note the architecture: shared core, per-platform UI — §0.2 → `desktop-macos-platform` pattern B. |\n| **Google Cloud IoT Core \u002F Microsoft App Center retirements** | Platform services people built on were withdrawn with notice periods measured in months. | Anything vendor-hosted in your update or telemetry path is a dependency with an expiry date. Own your appcast; keep your update mechanism replaceable. |\n| **MacUpdater shutdown (Jan 2026)** | An 8-year-old app-tracking service wound down; its database goes dark end of 2026, already producing false positives. | Third-party update discovery is not a distribution strategy. Ship a working in-app updater. |\n| **Electron's `nodeIntegration` era** | Early Electron apps ran remote content with full Node access; XSS became RCE. Defaults were changed (contextIsolation on, nodeIntegration off) in later majors. | Framework *defaults* are a security control. Apps that pinned old versions to avoid migration inherited the vulnerable defaults. |\n| **The GNOME\u002FKDE X11 removal** | Years of \"Wayland isn't ready\" gave way to GNOME removing X11 code entirely and KDE scheduling the same. | Deprecation announcements on the Linux desktop are slow, then sudden. Treat \"we'll port later\" as accruing interest. |\n| **libadwaita theming controversy** | A widely-read post about theming triggered a large, still-unresolved argument about GTK vs libadwaita and who owns an app's appearance. | On Linux, appearance is a *social* contract as much as a technical one. Whatever you choose, expect to defend it in your issue tracker. |\n| **The Linux accessibility resourcing gap** | Credible assessments found single-digit numbers of people working significantly on Linux a11y over a decade, while Wayland and sandboxing broke AT-SPI's assumptions. | If you use custom-drawn UI on Linux, you are almost certainly shipping an inaccessible app, and no ecosystem safety net will catch it. Use standard widgets. |\n| **Apple silicon transition (2020–2026)** | Universal binaries, Rosetta 2, and now the end of Intel support in macOS 26. | Multi-year architecture transitions are normal on macOS. Keep your build system capable of producing fat binaries and your dependencies capable of both architectures. |\n| **Sandbox retrofits** | Countless Mac apps that added App Sandbox years in discovered their data directory moved, their file access vanished, and their helper tools stopped working. | Sandbox decisions are architectural, not packaging. Decide before v1. |\n| **The `.desktop`\u002Fapp-ID mismatch class of bug** | Apps ship with a generic icon in the dock and no notification attribution because the Wayland `app_id` doesn't match the desktop file name. | Invisible in development, universal in bug reports. Verify the whole chain (§4.1 → `desktop-linux-platform`). |\n\n---\n\n## §18. Currency Snapshot — verified August 2026\n\n| Thing | Status as of Aug 2026 | Decay risk |\n|---|---|---|\n| **macOS** | **macOS 26 \"Tahoe\"** shipped 15 Sept 2025; latest **26.6.2** (17 Aug 2026). **Last macOS to support Intel Macs.** macOS 27 \"Golden Gate\" in public beta, September release expected | **High** |\n| **Xcode \u002F Swift** | Xcode **26.6** current (26.4 pairs with Swift compiler **6.3**; language modes 4\u002F4.2\u002F5\u002F6). Xcode 26.4 requires macOS Tahoe 26.2+ | High |\n| **Swift concurrency** | Swift 6 strict concurrency is the default in Swift 6 mode; **Swift 6.2's \"approachable concurrency\"** (`SWIFT_APPROACHABLE_CONCURRENCY`, main-actor-by-default, `nonisolated(nonsending)` per SE-0461, `@concurrent` escape hatch) is on by default for new Xcode 26 projects | Medium |\n| **Liquid Glass** | Introduced macOS 26; free for framework chrome on recompile; custom components need work; Icon Composer required for icons | Medium |\n| **SwiftData** | Production-viable for new apps on macOS 14+\u002FiOS 17+; stable across three OS releases; gained migration tooling in iOS 18; model inheritance added in the 2025 cycle. Still weaker than Core Data for complex graphs, heavyweight migrations, and some CloudKit sync modes | Medium |\n| **GTK** | **GTK 4.22.x** (4.22.4, Apr 2026) current. GTK5 not imminent. libadwaita tracks GNOME releases | Medium |\n| **GNOME** | GNOME 49 disabled the X11 session; **X11 backend code removed from Mutter; GNOME 50 (Mar 2026) ships with zero X11 code**. GNOME 51 due Sept 2026 | High |\n| **KDE Plasma** | **Plasma 6.8 will be Wayland-only**, expected ~**14 Oct 2026**; Plasma X11 session supported into **early 2027** | High |\n| **Distros** | Fedora 43 and Ubuntu 25.10 already ship no GNOME X11 session; Ubuntu 26.04 makes Wayland exclusive for major DEs | High |\n| **Xorg \u002F XLibre** | Xorg still maintained for security, **feature development halted**. XLibre is an actively-developed fork of contested provenance, adopted by a few distros (e.g. Artix default) | Medium |\n| **Qt** | **Qt 6.11.x** current (6.11.1, May 2026); ~6-month minor cadence. LTS = 5 years since 6.8.0; **LTS patches are commercial-only** | Medium |\n| **Wayland ancillary** | PipeWire **1.6.x** is the default audio\u002Fvideo server nearly everywhere; screen capture requires ScreenCast portal + PipeWire | Medium |\n| **Linux a11y** | AT-SPI2 is current; **Newton** (AccessKit-based, Wayland-native, sandbox-compatible) is the experimental successor. KDE added AT-SPI2 in Plasma 6.0; keyboard-event API landed in Mutter 48\u002FGNOME 48 and KWin\u002FKDE 6.4 | Medium |\n| **Flatpak\u002FFlathub** | Flathub ~3,200–3,500 apps, 433M downloads reported for 2025; default on Fedora, Mint, elementary, Steam Deck; Canonical ships a Flatpak plugin for GNOME Software | Low |\n| **Electron** | Still the most-used desktop framework; powers VS Code, Slack, Discord, Notion, Postman, 1Password, Obsidian, Linear, Figma desktop | Low |\n| **Tauri** | **Tauri 2 stable**, mobile (iOS\u002FAndroid) supported; the default recommendation for new size\u002Fmemory-sensitive projects in most 2026 comparisons | Medium |\n| **Deno desktop** | `deno desktop` shipped in **Deno 2.9 (25 June 2026)**; explicitly experimental | High |\n| **Avalonia** | **Avalonia 12** released ~Apr 2026 (large rendering-performance work; Impeller renderer in partnership with Google's Flutter team). **Avalonia.MAUI** backend brings MAUI to Linux\u002Fbrowser — preview | Medium |\n| **.NET MAUI** | Mobile-first; **no first-party Linux support**; desktop via WinUI + Mac Catalyst | Medium |\n| **Sparkle** | Still the macOS standard; Sparkle 2 supports sandboxed apps, custom UI, EdDSA signing, delta updates | Low |\n| **MacUpdater** | **Discontinued 1 Jan 2026**; database scheduled dark end of 2026 | Settled |\n| **EU CRA** | Reporting obligations **11 Sept 2026**; full application **11 Dec 2027** — applies to desktop software sold in the EU | **Imminent** |\n\n**What goes stale fastest**: macOS\u002FXcode versions; GNOME and Plasma release status; Swift\nconcurrency defaults; cross-platform framework version claims and benchmarks.\n**What essentially never goes stale**: §8 → `desktop-cross-platform-and-architecture` (architecture), §9 → `desktop-cross-platform-and-architecture` (desktop idioms), §14\n(anti-patterns), §17 (lessons).\n\n---\n\n## §19. Quick Reference\n\n### 19.1 \"Why doesn't my app feel native?\" — the checklist\n1. Menu bar \u002F header bar follows the platform HIG, with every command present\n2. Keyboard shortcuts match platform conventions; full keyboard navigation works\n3. Platform file dialogs (not a custom browser)\n4. Semantic colors; dark mode and high contrast work; respects Reduce Transparency\u002FMotion\n5. Window size\u002Fposition\u002Fstate restored across launches\n6. Drag & drop in *and* out; clipboard with multiple representations\n7. Undo\u002Fredo, unlimited and coalescing; autosave; crash recovery\n8. Correct app ID everywhere → icon, notifications, and window matching work (Linux)\n9. Screen-reader accessible (VoiceOver \u002F Orca) — actually tested\n10. Idles at ~0% CPU\n\n### 19.2 \"The app won't launch on a user's Mac\"\nSignature broken (`codesign --verify --deep --strict`) → not notarized or ticket not\nstapled (`stapler validate`) → quarantine + translocation breaking a relative path →\nmissing `NS*UsageDescription` for an API it calls at launch → an embedded binary unsigned\nor lacking Hardened Runtime → architecture mismatch (arm64-only on Intel, or a\nmixed-arch plugin) → `LSMinimumSystemVersion` above their OS.\n\n### 19.3 \"The app misbehaves on Linux\"\nWrong\u002Fmissing `.desktop` file or app-ID mismatch → Wayland vs X11 assumption → missing or\nwrong portal backend → no D-Bus session bus → Flatpak sandbox denying something (check\n`flatpak run --command=sh` and the portal logs) → missing runtime dependency the distro\ndidn't pull in → fractional scaling → theme assumptions.\n\n### 19.4 Numbers worth knowing\n- Frame budget: **16.7 ms** @60 Hz, **8.3 ms** @120 Hz.\n- \"Instantaneous\" to a user: **\u003C 100 ms**. Needs a spinner: **> 1 s**. Needs\n  cancel + progress: **> 10 s**.\n- Cold launch target: **\u003C 1 s** to interactive.\n- WCAG AA contrast: **4.5:1** body text, **3:1** large text and UI components.\n- Electron: ~80–200 MB bundle, ~150–300 MB idle RAM. Tauri: ~2–10 MB, ~30–50 MB.\n- macOS deployment: notarization requires **Hardened Runtime**; Mac App Store requires\n  **App Sandbox**; both require **code signing**.\n- Flatpak runtime download on first install: **500 MB+** (GNOME\u002FKDE platform) — mention\n  it in your install docs so users don't think your 8 MB app is 500 MB.\n\n### 19.5 Reviewing someone else's desktop app\n- [ ] Is there a UI-framework-free domain layer with tests? (§8.1 → `desktop-cross-platform-and-architecture`)\n- [ ] Any file\u002Fnetwork I\u002FO on the main thread? (§8.4 → `desktop-cross-platform-and-architecture`)\n- [ ] Are long operations cancellable, with progress?\n- [ ] Undo, autosave, atomic writes for user data? (§8.3 → `desktop-cross-platform-and-architecture`)\n- [ ] Window state restoration? Multi-window safe?\n- [ ] Semantic colors, dark mode, HiDPI, Reduce Transparency? (§9.4 → `desktop-cross-platform-and-architecture`)\n- [ ] Every command reachable by keyboard and present in a menu? (§9.2 → `desktop-cross-platform-and-architecture`)\n- [ ] Screen-reader tested (VoiceOver\u002FOrca)? (§9.6 → `desktop-cross-platform-and-architecture`)\n- [ ] Strings externalized; plurals and RTL handled? (§9.5 → `desktop-cross-platform-and-architecture`)\n- [ ] Secrets in Keychain \u002F Secret Service, not files? (§12 → `desktop-packaging-security-and-testing`)\n- [ ] macOS: signed + hardened + notarized + stapled; entitlements minimal? (§10.1 → `desktop-packaging-security-and-testing`)\n- [ ] Linux: app ID consistent; portals used; no `--filesystem=home`? (§4.1 → `desktop-linux-platform`, §12.3 → `desktop-packaging-security-and-testing`)\n- [ ] Electron: contextIsolation on, nodeIntegration off, CSP, current version? (§7.3 → `desktop-cross-platform-and-architecture`)\n- [ ] Update path atomic, signed, rollback-capable, and tested in CI? (§11 → `desktop-packaging-security-and-testing`, §13.3 → `desktop-packaging-security-and-testing`)\n- [ ] Idle CPU ≈ 0?\n\n---\n\n## §20. Sources and Method\n\n**Method.** Narrative (not systematic) review. Durable material — §8 → `desktop-cross-platform-and-architecture` (architecture),\n§9 → `desktop-cross-platform-and-architecture` (desktop idioms), §14 (anti-patterns), §16–17 — is synthesized from established\npractice and the canonical literature in §16. Every **time-sensitive** claim (versions,\ndates, deprecation schedules, product status) was verified against a primary or\nnear-primary source in **August 2026** and is flagged in §18 with a decay-risk rating.\nWhere practitioners disagree, §15 gives both cases rather than adjudicating, and disputed\nclaims are marked in place.\n\n**Search log** (August 2026): macOS current version and Xcode\u002FSwift pairing · SwiftUI vs\nAppKit state of play · GTK4\u002Flibadwaita versions and GNOME releases · Qt 6 releases and\nlicensing · Wayland\u002FX11 transition status across GNOME, KDE, and distros · Flatpak vs Snap\nvs AppImage · Tauri 2 vs Electron · macOS notarization, Hardened Runtime, entitlements,\nGatekeeper · XDG Desktop Portals · Swift 6 strict concurrency and 6.2 approachable\nconcurrency · Rust GUI ecosystem maturity · PipeWire, D-Bus, systemd user services ·\nSparkle and desktop auto-update · Linux accessibility (AT-SPI, Orca, Newton) · macOS 26\nLiquid Glass adoption · .NET MAUI \u002F Avalonia \u002F Compose Multiplatform desktop status ·\nSwiftData vs Core Data.\n\n**Primary and near-primary sources consulted (selected):**\n- Apple Developer documentation and WWDC sessions — Xcode system requirements page,\n  macOS 26 release notes, \"Use SwiftUI with AppKit and UIKit\" (WWDC26), \"Build a SwiftUI\n  app with the new design\" (WWDC25), \"Adopting Liquid Glass\", \"Adopting strict concurrency\n  in Swift 6\", \"Notarizing macOS software before distribution\"\n- Apple Support — Gatekeeper and runtime protection; macOS Tahoe 26 update notes\n- Bluetooth-unrelated: Qt Company — `doc.qt.io` releases and licensing pages; Qt release blogs\n- GNOME — `blogs.gnome.org` (X11 Session Removal FAQ; Newton accessibility updates);\n  GTK releases; libadwaita\n- KDE — `blogs.kde.org` \"Going all-in on a Wayland future\"; Plasma\u002FWayland community wiki\n- freedesktop.org — D-Bus specification; XDG Desktop Portal documentation and API reference\n- Flatpak — sandbox permissions documentation; Flathub\n- Snapcraft — XDG Desktop Portals documentation\n- ArchWiki — PipeWire, XDG Desktop Portal\n- LWN.net — \"Modernizing accessibility for desktop Linux\"; \"Enhancing screen-reader\n  functionality in modern GNOME\"\n- Sparkle Project — `sparkle-project.org` and GitHub\n- Electron — `electron.build` notarization docs; `electron\u002Fnotarize`\n- Avalonia UI — Avalonia 12 release blog; MAUI backend announcement\n- Espressif-unrelated: Deno release notes (via secondary coverage) for `deno desktop`\n- European Commission — Cyber Resilience Act reporting obligations\n\n**Confidence statement.** High confidence in §1–§2 → `desktop-macos-platform`, §4–§6 → `desktop-linux-platform`, §8–§14 → `desktop-cross-platform-and-architecture`, §16–§17, §19 (durable\narchitecture, well-documented platform mechanics, and verifiable history). High confidence\nin §18's verified items as of the stated date. **Moderate confidence** in the framework\ncomparison figures in §7.1 → `desktop-cross-platform-and-architecture` and the adoption characterizations in §7.2 → `desktop-cross-platform-and-architecture`, §7.4 → `desktop-cross-platform-and-architecture`, and §10.2 → `desktop-packaging-security-and-testing` —\nthese rest substantially on practitioner blogs and vendor material where incentives differ\nand methodology is rarely published. They are stated as representative ranges and\ntendencies, **not measurements**; benchmark your own workload before making a decision\nthat depends on them.\n","# Desktop Apps (macOS & Linux): Anti-Patterns, Contested Questions, Canon, Case Studies, and Currency\n\n> **Part 5 of 5** of the *Desktop Application Programming — macOS & Linux* reference (plugin `desktop-apps-macos-linux`), covering §14–§20. Sibling skills: `desktop-macos-platform` (§0–§3), `desktop-linux-platform` (§4–§6), `desktop-cross-platform-and-architecture` (§7–§9), `desktop-packaging-security-and-testing` (§10–§13). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §18 below for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference, not tutorial. Sections are independent. Three markers:\n> - **[UNIVERSAL]** — true of desktop software regardless of platform or toolkit.\n> - **[PLATFORM]** — specific to macOS or a particular Linux stack. Verify against current docs.\n> - **[CONTESTED]** — competent engineers disagree. Both cases given; don't adjudicate for the reader.\n>\n> **⚠️ GOTCHA** boxes mark the failure modes that actually cost people days.\n>\n> **The single most important framing in this document:** macOS is *one* platform with\n> *one* vendor, *one* HIG, and *one* blessed path. Linux is *not a platform* — it is a\n> family of overlapping conventions (freedesktop specs), two dominant toolkits, two\n> display protocols, three packaging formats, and a dozen desktop environments. Advice\n> that treats them symmetrically is wrong. Almost every difficulty in cross-platform\n> desktop work traces back to this asymmetry.\n\n---\n\n## §14. Anti-Patterns\n\n| Anti-pattern | Why it's bad | Do instead |\n|---|---|---|\n| Blocking I\u002FO on the main thread | Beachball \u002F frozen window; the #1 perceived-quality bug | Async everything; §8.4 → `desktop-cross-platform-and-architecture` |\n| A custom file browser inside your app | Ignores bookmarks, recents, cloud providers, sandbox, portals | Platform file dialog \u002F FileChooser portal |\n| Hardcoded colors instead of semantic ones | Breaks dark mode, high contrast, accent colors | Semantic colors and system materials |\n| Hardcoded paths (`~\u002FLibrary\u002F...`, `~\u002F.config\u002F...` literal) | Breaks under sandbox and Flatpak | Platform APIs \u002F XDG env vars |\n| No keyboard access to a feature | Fails accessibility; power users bounce | Menu item + shortcut for every command |\n| Removing focus rings for aesthetics | Accessibility regression | Restyle them |\n| Custom-drawn controls without accessibility | Invisible to screen readers | Native widgets, or implement the a11y tree |\n| Ignoring window state restoration | Feels broken every launch | Persist and restore |\n| A splash screen to hide slow startup | Hides the problem; users still wait | Fix startup; show real UI progressively |\n| Auto-update that isn't atomic | Bricked installs, unrecoverable | Sparkle\u002FOSTree\u002Ftransactional |\n| `--filesystem=home` in a Flatpak | Defeats the sandbox; reviewers reject | Portals |\n| `nodeIntegration: true` \u002F `contextIsolation: false` in Electron | Remote content gets Node — full RCE | Preload + contextBridge (§7.3 → `desktop-cross-platform-and-architecture`) |\n| Shipping an ancient Electron\u002FChromium | You ship known RCEs | Track upstream releases |\n| Polling timers at idle | Battery drain, fan noise, uninstall | Event-driven; pause when occluded |\n| One giant \"AppDelegate\"\u002F\"MainWindow\" class | Untestable, unmergeable | Layered architecture (§8.1 → `desktop-cross-platform-and-architecture`) |\n| Assuming X11 | Broken on GNOME 50+, Fedora 43+, Ubuntu 25.10+ | Test on Wayland first |\n| Assuming integer display scale | Blurry\u002Fmisaligned at 125%\u002F150% | Handle fractional scaling |\n| String concatenation for translated text | Untranslatable; wrong word order | Positional format strings |\n| Storing secrets in prefs\u002Fplain files | Trivially harvested | Keychain \u002F Secret Service |\n| Truncate-then-write the user's document | Crash mid-write destroys data | temp + fsync + atomic rename |\n| No undo | Users will not trust the app with real work | §8.3 → `desktop-cross-platform-and-architecture` |\n| Changing `CFBundleIdentifier` \u002F app ID after ship | Orphans data, keychain, licenses, store record | Choose carefully once |\n| Testing only on your own machine\u002FDE | Ships bugs on every other configuration | Matrix: macOS n and n-1; GNOME + KDE; Wayland + X11 |\n\n---\n\n## §15. Contested Questions\n\nPresent the strongest version of each side; the right answer is context-dependent.\n\n**15.1 SwiftUI vs AppKit** — §2.1 → `desktop-macos-platform`. Dividing line: SwiftUI for structure and forms; AppKit\nfor dense data, text systems, and deep window\u002Fmenu control. Nobody serious is 100% either.\n\n**15.2 Native per-platform vs one cross-platform toolkit** — Native wins on feel,\naccessibility, platform integration, and long-term maintainability *per platform*;\ncross-platform wins on total cost and consistency. The synthesis that keeps winning is\narchitecture **B** from §0.2 → `desktop-macos-platform`: shared core, native UI.\n\n**15.3 Electron vs Tauri** — §7.2 → `desktop-cross-platform-and-architecture`. Consistency and ecosystem maturity versus footprint and\npermission model. Both camps are shipping real products.\n\n**15.4 Flatpak vs Snap vs AppImage** — §10.2 → `desktop-packaging-security-and-testing`. Flatpak has the ecosystem centre of gravity\nfor GUI apps; Snap has the Ubuntu\u002Fserver\u002Fdaemon story and transactional updates but a\nsingle centralized store; AppImage has portability and no update or sandbox story. Trying\nto force one format everywhere is the actual mistake.\n\n**15.5 GTK+libadwaita vs Qt on Linux** — libadwaita gives you a GNOME-perfect app and a\nGNOME-shaped one. Qt gives you cross-desktop and cross-OS reach with a licensing decision\nattached (LGPL relinking constraints; GPL-only modules; commercial for static linking and\nLTS patches). Neither is wrong; the deciding factors are usually licensing and whether you\nalso target Windows.\n\n**15.6 Sandboxed (App Store\u002FFlatpak) vs unsandboxed distribution** — Sandboxing buys user\ntrust, store distribution, and genuine security; it costs capability (some apps simply\ncannot be sandboxed), engineering time, and — on macOS — a revenue share. Many pro Mac\napps ship both builds with different feature sets, and say so plainly on their site.\n\n**15.7 Wayland-first vs keeping X11 support** — GNOME has removed X11 code and KDE follows\nin Plasma 6.8; new apps should be Wayland-native and use portals. The counterweight: LTS\ndistributions, XFCE\u002FMATE\u002FCinnamon users, remote-desktop workflows, and accessibility tools\nthat still work better on X11 will exist for years. Support both if your users need it,\nbut *develop* on Wayland.\n\n**15.8 Swift 6 strict concurrency: too much or just right** — §3.2 → `desktop-macos-platform`.\n\n**15.9 SwiftData vs Core Data vs GRDB** — §3.3 → `desktop-macos-platform`.\n\n**15.10 Menu bar vs header-bar\u002Fhamburger on Linux** — GNOME HIG says header bar; KDE and\ntraditional-desktop users expect menus; power users and accessibility tooling both benefit\nfrom a discoverable menu structure. Pick per your target desktop and be internally\nconsistent.\n\n---\n\n## §16. The Canon — authorities and references\n\n### 16.1 Primary documentation (always prefer these)\n\n**Apple**\n- **Human Interface Guidelines** — the macOS sections specifically; the Mac patterns\n  differ from iOS in ways tutorials elide.\n- **Apple Developer Documentation**: AppKit, SwiftUI, Foundation, Security, `notarytool`,\n  \"Notarizing macOS software before distribution\", \"Adopting Liquid Glass\",\n  \"Adopting strict concurrency in Swift 6\".\n- **WWDC session videos** — genuinely the best source for new API rationale. For this\n  domain: \"Use SwiftUI with AppKit and UIKit\" (WWDC26), \"Build a SwiftUI app with the new\n  design\" (WWDC25), the privacy\u002FGatekeeper \"What's new in privacy\" series (2022–2024\n  cover app-bundle, container, and app-group protection changes).\n- **Apple Platform Security guide** — Gatekeeper, notarization, runtime protection.\n- **Swift Evolution proposals** (SE-####) for concurrency semantics; the **Swift Forums**\n  are where the real migration discussions happen.\n\n**Linux \u002F freedesktop**\n- **freedesktop.org specifications** — Base Directory, Desktop Entry, Icon Theme,\n  AppStream, MIME, Notifications, Autostart, Trash, Secret Service.\n- **XDG Desktop Portal documentation** (`flatpak.github.io\u002Fxdg-desktop-portal`) — the\n  API reference *and* the \"Reasons to Use Portals\" \u002F \"For App Developers\" pages.\n- **GNOME Human Interface Guidelines** and the **libadwaita** docs; **GTK4 API reference**;\n  **gtk4-rs book**.\n- **KDE Human Interface Guidelines**; **Qt documentation** (`doc.qt.io`) — especially the\n  licensing and release pages, which are the authoritative word on LGPL\u002FGPL\u002Fcommercial.\n- **Flatpak documentation** (sandbox permissions, manifests) and **Flathub's** submission\n  requirements.\n- **ArchWiki** — despite being distro-specific, it is the best practical reference for\n  PipeWire, portals, Wayland, systemd\u002Fuser, and D-Bus. Use it as documentation, not as\n  Arch advocacy.\n- **LWN.net** — the highest-signal reporting on Linux desktop architecture changes\n  (the accessibility\u002FNewton coverage is the reference on that topic).\n\n### 16.2 Books and long-form\n\n| Author \u002F source | Work | Why |\n|---|---|---|\n| **Aaron Hillegass** | *Cocoa Programming for OS X* | The classic AppKit text; still the best explanation of the Cocoa object model and delegation |\n| **Matt Neuburg** | *Programming iOS\u002FmacOS* series | Rigorous, precise, updated frequently |\n| **Paul Hudson** | *Hacking with Swift \u002F Hacking with macOS* | The best free practical Swift\u002FSwiftUI reference; his Swift 6 concurrency writeups are widely cited |\n| **Chris Eidhof, Florian Kugler, Wouter Swierstra (objc.io)** | *Advanced Swift*, *Thinking in SwiftUI* | The deepest treatment of how SwiftUI actually evaluates |\n| **Fatbobman (Xu Yang)** | Core Data \u002F SwiftData blog series | The most thorough independent analysis of Apple's persistence stack |\n| **Michael Tsai** | Blog | The community's institutional memory for Apple platform changes and their consequences |\n| **Jasper St. Pierre** | *Xplain* | The clearest existing explanation of how X11 actually works — read before arguing about Wayland |\n| **Daniel Stone** | \"The Real Story Behind Wayland and X\" (talk) | The canonical account of why Wayland exists |\n| **Havoc Pennington** | D-Bus design writing | Origin rationale for the desktop's IPC model |\n| **Blanchette & Summerfield** | *C++ GUI Programming with Qt* | Dated but still the best structured Qt introduction |\n| **Andrew Krause** | *Foundations of GTK+ Development* | GTK's conceptual model (GTK3-era; concepts transfer) |\n| **Jeff Johnson** | *Designing with the Mind in Mind*; *GUI Bloopers* | The cognitive-psychology basis for UI decisions |\n| **Alan Cooper** | *About Face* | The interaction-design canon |\n| **Bruce Tognazzini** | *Tog on Interface* \u002F First Principles | Where much of the Mac's interaction philosophy originates |\n\n### 16.3 Ongoing sources\n**Apple side**: Michael Tsai's blog, The Eclectic Light Company (Howard Oakley — deep,\naccurate macOS internals), Hacking with Swift, objc.io, SwiftLee, Swift Forums,\n`developer.apple.com\u002Fforums` (the Gatekeeper\u002Fcode-signing tags are staffed by Apple's\nDTS and are the definitive answer source for signing problems).\n**Linux side**: LWN.net, Phoronix (news, treat benchmarks carefully), GNOME and KDE\ndeveloper blogs (`blogs.gnome.org`, `blogs.kde.org` — KDE's \"This Week in Plasma\" is\nexcellent), 9to5Linux\u002FOMG!Ubuntu for release tracking, the Flatpak and freedesktop\nGitLab issue trackers.\n**Cross-platform**: the Electron and Tauri blogs and release notes; `areweguiyet.com` and\nboringcactus's periodic Rust GUI survey.\n\n---\n\n## §17. Case Studies and Hard-Won Lessons\n\n| Case | What happened | Transferable lesson |\n|---|---|---|\n| **Ghostty's non-native fullscreen** | Mitchell Hashimoto's terminal (Zig core, SwiftUI on macOS, GTK4 on Linux) needed \"non-native fullscreen.\" Online samples suggested a dozen lines; the real PR was +802\u002F−239. | The last 10% of *native feel* is where AppKit knowledge is irreplaceable. Budget for it, and note the architecture: shared core, per-platform UI — §0.2 → `desktop-macos-platform` pattern B. |\n| **Google Cloud IoT Core \u002F Microsoft App Center retirements** | Platform services people built on were withdrawn with notice periods measured in months. | Anything vendor-hosted in your update or telemetry path is a dependency with an expiry date. Own your appcast; keep your update mechanism replaceable. |\n| **MacUpdater shutdown (Jan 2026)** | An 8-year-old app-tracking service wound down; its database goes dark end of 2026, already producing false positives. | Third-party update discovery is not a distribution strategy. Ship a working in-app updater. |\n| **Electron's `nodeIntegration` era** | Early Electron apps ran remote content with full Node access; XSS became RCE. Defaults were changed (contextIsolation on, nodeIntegration off) in later majors. | Framework *defaults* are a security control. Apps that pinned old versions to avoid migration inherited the vulnerable defaults. |\n| **The GNOME\u002FKDE X11 removal** | Years of \"Wayland isn't ready\" gave way to GNOME removing X11 code entirely and KDE scheduling the same. | Deprecation announcements on the Linux desktop are slow, then sudden. Treat \"we'll port later\" as accruing interest. |\n| **libadwaita theming controversy** | A widely-read post about theming triggered a large, still-unresolved argument about GTK vs libadwaita and who owns an app's appearance. | On Linux, appearance is a *social* contract as much as a technical one. Whatever you choose, expect to defend it in your issue tracker. |\n| **The Linux accessibility resourcing gap** | Credible assessments found single-digit numbers of people working significantly on Linux a11y over a decade, while Wayland and sandboxing broke AT-SPI's assumptions. | If you use custom-drawn UI on Linux, you are almost certainly shipping an inaccessible app, and no ecosystem safety net will catch it. Use standard widgets. |\n| **Apple silicon transition (2020–2026)** | Universal binaries, Rosetta 2, and now the end of Intel support in macOS 26. | Multi-year architecture transitions are normal on macOS. Keep your build system capable of producing fat binaries and your dependencies capable of both architectures. |\n| **Sandbox retrofits** | Countless Mac apps that added App Sandbox years in discovered their data directory moved, their file access vanished, and their helper tools stopped working. | Sandbox decisions are architectural, not packaging. Decide before v1. |\n| **The `.desktop`\u002Fapp-ID mismatch class of bug** | Apps ship with a generic icon in the dock and no notification attribution because the Wayland `app_id` doesn't match the desktop file name. | Invisible in development, universal in bug reports. Verify the whole chain (§4.1 → `desktop-linux-platform`). |\n\n---\n\n## §18. Currency Snapshot — verified August 2026\n\n| Thing | Status as of Aug 2026 | Decay risk |\n|---|---|---|\n| **macOS** | **macOS 26 \"Tahoe\"** shipped 15 Sept 2025; latest **26.6.2** (17 Aug 2026). **Last macOS to support Intel Macs.** macOS 27 \"Golden Gate\" in public beta, September release expected | **High** |\n| **Xcode \u002F Swift** | Xcode **26.6** current (26.4 pairs with Swift compiler **6.3**; language modes 4\u002F4.2\u002F5\u002F6). Xcode 26.4 requires macOS Tahoe 26.2+ | High |\n| **Swift concurrency** | Swift 6 strict concurrency is the default in Swift 6 mode; **Swift 6.2's \"approachable concurrency\"** (`SWIFT_APPROACHABLE_CONCURRENCY`, main-actor-by-default, `nonisolated(nonsending)` per SE-0461, `@concurrent` escape hatch) is on by default for new Xcode 26 projects | Medium |\n| **Liquid Glass** | Introduced macOS 26; free for framework chrome on recompile; custom components need work; Icon Composer required for icons | Medium |\n| **SwiftData** | Production-viable for new apps on macOS 14+\u002FiOS 17+; stable across three OS releases; gained migration tooling in iOS 18; model inheritance added in the 2025 cycle. Still weaker than Core Data for complex graphs, heavyweight migrations, and some CloudKit sync modes | Medium |\n| **GTK** | **GTK 4.22.x** (4.22.4, Apr 2026) current. GTK5 not imminent. libadwaita tracks GNOME releases | Medium |\n| **GNOME** | GNOME 49 disabled the X11 session; **X11 backend code removed from Mutter; GNOME 50 (Mar 2026) ships with zero X11 code**. GNOME 51 due Sept 2026 | High |\n| **KDE Plasma** | **Plasma 6.8 will be Wayland-only**, expected ~**14 Oct 2026**; Plasma X11 session supported into **early 2027** | High |\n| **Distros** | Fedora 43 and Ubuntu 25.10 already ship no GNOME X11 session; Ubuntu 26.04 makes Wayland exclusive for major DEs | High |\n| **Xorg \u002F XLibre** | Xorg still maintained for security, **feature development halted**. XLibre is an actively-developed fork of contested provenance, adopted by a few distros (e.g. Artix default) | Medium |\n| **Qt** | **Qt 6.11.x** current (6.11.1, May 2026); ~6-month minor cadence. LTS = 5 years since 6.8.0; **LTS patches are commercial-only** | Medium |\n| **Wayland ancillary** | PipeWire **1.6.x** is the default audio\u002Fvideo server nearly everywhere; screen capture requires ScreenCast portal + PipeWire | Medium |\n| **Linux a11y** | AT-SPI2 is current; **Newton** (AccessKit-based, Wayland-native, sandbox-compatible) is the experimental successor. KDE added AT-SPI2 in Plasma 6.0; keyboard-event API landed in Mutter 48\u002FGNOME 48 and KWin\u002FKDE 6.4 | Medium |\n| **Flatpak\u002FFlathub** | Flathub ~3,200–3,500 apps, 433M downloads reported for 2025; default on Fedora, Mint, elementary, Steam Deck; Canonical ships a Flatpak plugin for GNOME Software | Low |\n| **Electron** | Still the most-used desktop framework; powers VS Code, Slack, Discord, Notion, Postman, 1Password, Obsidian, Linear, Figma desktop | Low |\n| **Tauri** | **Tauri 2 stable**, mobile (iOS\u002FAndroid) supported; the default recommendation for new size\u002Fmemory-sensitive projects in most 2026 comparisons | Medium |\n| **Deno desktop** | `deno desktop` shipped in **Deno 2.9 (25 June 2026)**; explicitly experimental | High |\n| **Avalonia** | **Avalonia 12** released ~Apr 2026 (large rendering-performance work; Impeller renderer in partnership with Google's Flutter team). **Avalonia.MAUI** backend brings MAUI to Linux\u002Fbrowser — preview | Medium |\n| **.NET MAUI** | Mobile-first; **no first-party Linux support**; desktop via WinUI + Mac Catalyst | Medium |\n| **Sparkle** | Still the macOS standard; Sparkle 2 supports sandboxed apps, custom UI, EdDSA signing, delta updates | Low |\n| **MacUpdater** | **Discontinued 1 Jan 2026**; database scheduled dark end of 2026 | Settled |\n| **EU CRA** | Reporting obligations **11 Sept 2026**; full application **11 Dec 2027** — applies to desktop software sold in the EU | **Imminent** |\n\n**What goes stale fastest**: macOS\u002FXcode versions; GNOME and Plasma release status; Swift\nconcurrency defaults; cross-platform framework version claims and benchmarks.\n**What essentially never goes stale**: §8 → `desktop-cross-platform-and-architecture` (architecture), §9 → `desktop-cross-platform-and-architecture` (desktop idioms), §14\n(anti-patterns), §17 (lessons).\n\n---\n\n## §19. Quick Reference\n\n### 19.1 \"Why doesn't my app feel native?\" — the checklist\n1. Menu bar \u002F header bar follows the platform HIG, with every command present\n2. Keyboard shortcuts match platform conventions; full keyboard navigation works\n3. Platform file dialogs (not a custom browser)\n4. Semantic colors; dark mode and high contrast work; respects Reduce Transparency\u002FMotion\n5. Window size\u002Fposition\u002Fstate restored across launches\n6. Drag & drop in *and* out; clipboard with multiple representations\n7. Undo\u002Fredo, unlimited and coalescing; autosave; crash recovery\n8. Correct app ID everywhere → icon, notifications, and window matching work (Linux)\n9. Screen-reader accessible (VoiceOver \u002F Orca) — actually tested\n10. Idles at ~0% CPU\n\n### 19.2 \"The app won't launch on a user's Mac\"\nSignature broken (`codesign --verify --deep --strict`) → not notarized or ticket not\nstapled (`stapler validate`) → quarantine + translocation breaking a relative path →\nmissing `NS*UsageDescription` for an API it calls at launch → an embedded binary unsigned\nor lacking Hardened Runtime → architecture mismatch (arm64-only on Intel, or a\nmixed-arch plugin) → `LSMinimumSystemVersion` above their OS.\n\n### 19.3 \"The app misbehaves on Linux\"\nWrong\u002Fmissing `.desktop` file or app-ID mismatch → Wayland vs X11 assumption → missing or\nwrong portal backend → no D-Bus session bus → Flatpak sandbox denying something (check\n`flatpak run --command=sh` and the portal logs) → missing runtime dependency the distro\ndidn't pull in → fractional scaling → theme assumptions.\n\n### 19.4 Numbers worth knowing\n- Frame budget: **16.7 ms** @60 Hz, **8.3 ms** @120 Hz.\n- \"Instantaneous\" to a user: **\u003C 100 ms**. Needs a spinner: **> 1 s**. Needs\n  cancel + progress: **> 10 s**.\n- Cold launch target: **\u003C 1 s** to interactive.\n- WCAG AA contrast: **4.5:1** body text, **3:1** large text and UI components.\n- Electron: ~80–200 MB bundle, ~150–300 MB idle RAM. Tauri: ~2–10 MB, ~30–50 MB.\n- macOS deployment: notarization requires **Hardened Runtime**; Mac App Store requires\n  **App Sandbox**; both require **code signing**.\n- Flatpak runtime download on first install: **500 MB+** (GNOME\u002FKDE platform) — mention\n  it in your install docs so users don't think your 8 MB app is 500 MB.\n\n### 19.5 Reviewing someone else's desktop app\n- [ ] Is there a UI-framework-free domain layer with tests? (§8.1 → `desktop-cross-platform-and-architecture`)\n- [ ] Any file\u002Fnetwork I\u002FO on the main thread? (§8.4 → `desktop-cross-platform-and-architecture`)\n- [ ] Are long operations cancellable, with progress?\n- [ ] Undo, autosave, atomic writes for user data? (§8.3 → `desktop-cross-platform-and-architecture`)\n- [ ] Window state restoration? Multi-window safe?\n- [ ] Semantic colors, dark mode, HiDPI, Reduce Transparency? (§9.4 → `desktop-cross-platform-and-architecture`)\n- [ ] Every command reachable by keyboard and present in a menu? (§9.2 → `desktop-cross-platform-and-architecture`)\n- [ ] Screen-reader tested (VoiceOver\u002FOrca)? (§9.6 → `desktop-cross-platform-and-architecture`)\n- [ ] Strings externalized; plurals and RTL handled? (§9.5 → `desktop-cross-platform-and-architecture`)\n- [ ] Secrets in Keychain \u002F Secret Service, not files? (§12 → `desktop-packaging-security-and-testing`)\n- [ ] macOS: signed + hardened + notarized + stapled; entitlements minimal? (§10.1 → `desktop-packaging-security-and-testing`)\n- [ ] Linux: app ID consistent; portals used; no `--filesystem=home`? (§4.1 → `desktop-linux-platform`, §12.3 → `desktop-packaging-security-and-testing`)\n- [ ] Electron: contextIsolation on, nodeIntegration off, CSP, current version? (§7.3 → `desktop-cross-platform-and-architecture`)\n- [ ] Update path atomic, signed, rollback-capable, and tested in CI? (§11 → `desktop-packaging-security-and-testing`, §13.3 → `desktop-packaging-security-and-testing`)\n- [ ] Idle CPU ≈ 0?\n\n---\n\n## §20. Sources and Method\n\n**Method.** Narrative (not systematic) review. Durable material — §8 → `desktop-cross-platform-and-architecture` (architecture),\n§9 → `desktop-cross-platform-and-architecture` (desktop idioms), §14 (anti-patterns), §16–17 — is synthesized from established\npractice and the canonical literature in §16. Every **time-sensitive** claim (versions,\ndates, deprecation schedules, product status) was verified against a primary or\nnear-primary source in **August 2026** and is flagged in §18 with a decay-risk rating.\nWhere practitioners disagree, §15 gives both cases rather than adjudicating, and disputed\nclaims are marked in place.\n\n**Search log** (August 2026): macOS current version and Xcode\u002FSwift pairing · SwiftUI vs\nAppKit state of play · GTK4\u002Flibadwaita versions and GNOME releases · Qt 6 releases and\nlicensing · Wayland\u002FX11 transition status across GNOME, KDE, and distros · Flatpak vs Snap\nvs AppImage · Tauri 2 vs Electron · macOS notarization, Hardened Runtime, entitlements,\nGatekeeper · XDG Desktop Portals · Swift 6 strict concurrency and 6.2 approachable\nconcurrency · Rust GUI ecosystem maturity · PipeWire, D-Bus, systemd user services ·\nSparkle and desktop auto-update · Linux accessibility (AT-SPI, Orca, Newton) · macOS 26\nLiquid Glass adoption · .NET MAUI \u002F Avalonia \u002F Compose Multiplatform desktop status ·\nSwiftData vs Core Data.\n\n**Primary and near-primary sources consulted (selected):**\n- Apple Developer documentation and WWDC sessions — Xcode system requirements page,\n  macOS 26 release notes, \"Use SwiftUI with AppKit and UIKit\" (WWDC26), \"Build a SwiftUI\n  app with the new design\" (WWDC25), \"Adopting Liquid Glass\", \"Adopting strict concurrency\n  in Swift 6\", \"Notarizing macOS software before distribution\"\n- Apple Support — Gatekeeper and runtime protection; macOS Tahoe 26 update notes\n- Bluetooth-unrelated: Qt Company — `doc.qt.io` releases and licensing pages; Qt release blogs\n- GNOME — `blogs.gnome.org` (X11 Session Removal FAQ; Newton accessibility updates);\n  GTK releases; libadwaita\n- KDE — `blogs.kde.org` \"Going all-in on a Wayland future\"; Plasma\u002FWayland community wiki\n- freedesktop.org — D-Bus specification; XDG Desktop Portal documentation and API reference\n- Flatpak — sandbox permissions documentation; Flathub\n- Snapcraft — XDG Desktop Portals documentation\n- ArchWiki — PipeWire, XDG Desktop Portal\n- LWN.net — \"Modernizing accessibility for desktop Linux\"; \"Enhancing screen-reader\n  functionality in modern GNOME\"\n- Sparkle Project — `sparkle-project.org` and GitHub\n- Electron — `electron.build` notarization docs; `electron\u002Fnotarize`\n- Avalonia UI — Avalonia 12 release blog; MAUI backend announcement\n- Espressif-unrelated: Deno release notes (via secondary coverage) for `deno desktop`\n- European Commission — Cyber Resilience Act reporting obligations\n\n**Confidence statement.** High confidence in §1–§2 → `desktop-macos-platform`, §4–§6 → `desktop-linux-platform`, §8–§14 → `desktop-cross-platform-and-architecture`, §16–§17, §19 (durable\narchitecture, well-documented platform mechanics, and verifiable history). High confidence\nin §18's verified items as of the stated date. **Moderate confidence** in the framework\ncomparison figures in §7.1 → `desktop-cross-platform-and-architecture` and the adoption characterizations in §7.2 → `desktop-cross-platform-and-architecture`, §7.4 → `desktop-cross-platform-and-architecture`, and §10.2 → `desktop-packaging-security-and-testing` —\nthese rest substantially on practitioner blogs and vendor material where incentives differ\nand methodology is rarely published. They are stated as representative ranges and\ntendencies, **not measurements**; benchmark your own workload before making a decision\nthat depends on them.\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fdesktop-apps-macos-linux\u002Fskills\u002Fdesktop-reference",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill desktop-reference",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill desktop-reference",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill desktop-reference","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fdesktop-apps-macos-linux\u002Fskills\u002Fdesktop-reference\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]