Skip to content

Ship the Mac's app hooks and update takeover check for the step 6 seam - #636

Merged
maralcbr merged 2 commits into
quattro-upstreamfrom
mac/103-app-takeover-hooks
Sep 27, 2026
Merged

maralcbr merged 2 commits into
quattro-upstreamfrom
mac/103-app-takeover-hooks

Conversation

@maralcbr

Copy link
Copy Markdown
Member

Stacked on #634; retarget to quattro-upstream once it merges.

Upstream omacom#13362 step 6 adds three dispatch operations the Mac packages must ship before it lands (contract in its docs/lifecycle-dispatch.md). This adds them, reproducing what quattro-upstream does today:

  • omarchy-mac post-install <app> (as the user): a Chromium-family browser (chromium chrome edge brave brave-origin) gets the Mac user setup again, so its fresh flags file turns hardware decode off; steam gets its FEX launcher through sudo (omarchy-mac's steam-launcher) and omarchy-launch-steam --prepare; other apps nothing.
  • omarchy-mac pre-remove <app> (as the user): steam drops omarchy-steam-fex (it depends on Steam), the desktop entry the launcher wrote (unless the user changed it) and ~/.local/share/fex-steam, which upstream's remover no longer deletes.
  • omarchy-mac-boot update-takeover <path>... (root, read-only, required on Apple): refuses the whole takeover when any path is one quattro-upstream's omarchy-update-system-pkgs-when-conflicted refuses inline on a Mac (boot chain, initramfs, pacman configuration and the x86 memory-stack files); anything else may go. Same list, same message.
  • User setup now patches browser flags in ~/.config as well as $XDG_CONFIG_HOME (installers write ~/.config; step 6's dispatcher passes XDG_CONFIG_HOME).

quattro-upstream's runtime doesn't call these yet (its dispatcher predates step 6); they ship now so the held re-pins (omacom/omarchy-pkgs#672, #673) carry them.

Tests: packages/omarchy-mac/test/app-hooks-test.sh, boot/test/mac-update-takeover-test.sh; package suite 76/76, boot suite passes.

Debated (FEX data, XDG flags, sudo failure test fixed) and reviewed (platform re-check in the Steam hooks fixed); no blockers.

Upstream's step 6 dispatches post-install and pre-remove around browser and
Steam installs, and asks the platform's boot package before an update
takes over files no package owns. omarchy-mac now answers the app hooks as
quattro-upstream behaves today (decode flags for a new browser; Steam's FEX
launcher, its preparation and its removal), and omarchy-mac-boot answers the
takeover with the paths the runtime refuses inline on a Mac.
@maralcbr
maralcbr changed the base branch from mac/103-widevine-steam-fex to quattro-upstream September 27, 2026 15:43
@maralcbr
maralcbr merged commit 72bfdbb into quattro-upstream Sep 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant