Register the Chromium native messaging hosts on fresh installs

Chromium ships in the base packages, so it never goes through
omarchy-install-browser, and a first install stamps every migration as
already applied without running it. That left both bundled extensions
loaded from chromium-flags.conf with no host to talk to: Copy URL did
nothing at all, since the clipboard write and the toast both live in the
host.

The user install now registers both hosts itself, and a migration
repairs the installs that already missed out — Copy URL since 1784763917
landed, Download Video since 1780517689, unless installing a browser or
refreshing Chromium happened to fix them along the way.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VeAd2iERgi7bRSxq2gA1hp
This commit is contained in:
David Heinemeier Hansson
2026-07-27 09:02:25 -07:00
co-authored by Claude Opus 5
parent 8362c0990a
commit 4d93ad588f
4 changed files with 27 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
echo "Register the native messaging hosts for the bundled Chromium extensions"
# Fresh installs stamped 1780517689 and 1784763917 as applied without running
# them, so the bundled extensions loaded with no host to talk to.
omarchy-install-chromium-copy-url
omarchy-install-chromium-ytdlp