Brave-Origin missing from native messaging host registration (yt-dlp + copy-url)
Description
omarchy-install-chromium-ytdlp does not register the native messaging host for the Brave-Origin profile directory (~/.config/BraveSoftware/Brave-Origin). This means the yt-dlp download extension (Alt+Shift+D) and Copy URL silently fail when used in Brave-Origin, even though the extensions are correctly loaded via brave-origin-flags.conf.
Root Cause
/usr/share/omarchy/bin/omarchy-install-chromium-ytdlp defines a browser_dirs array that includes BraveSoftware/Brave-Browser, Brave-Browser-Beta, and Brave-Browser-Nightly, but not BraveSoftware/Brave-Origin.
The same omission exists for Copy URL (also uses native messaging via omarchy-chromium-copy-url-host).
Steps to Reproduce
- Install
brave-origin-binfrom AUR - Open Brave-Origin with a YouTube video playing
- Press Alt+Shift+D (or click the extension toolbar icon)
- Nothing happens — no download notification, no OSD
Expected
yt-dlp downloads the video and shows a notification with a thumbnail.
Workaround
Manually create the native messaging host:
mkdir -p ~/.config/BraveSoftware/Brave-Origin/NativeMessagingHosts
HOST_PATH="/usr/share/omarchy/bin/omarchy-chromium-ytdlp-host"
sed "s|__HOST_PATH__|\$HOST_PATH|g" /usr/share/omarchy/default/chromium/native-messaging-hosts/com.omarchy.ytdlp.json > ~/.config/BraveSoftware/Brave-Origin/NativeMessagingHosts/com.omarchy.ytdlp.json
Same for Copy URL:
HOST_PATH="/usr/share/omarchy/bin/omarchy-chromium-copy-url-host"
sed "s|__HOST_PATH__|\$HOST_PATH|g" /usr/share/omarchy/default/chromium/native-messaging-hosts/com.omarchy.copy_url.json > ~/.config/BraveSoftware/Brave-Origin/NativeMessagingHosts/com.omarchy.copy_url.json
Suggested Fix
Add "\$HOME/.config/BraveSoftware/Brave-Origin" to the browser_dirs array in omarchy-install-chromium-ytdlp (and the equivalent installer for copy-url if it exists separately).
System Info
- Omarchy: 4.0.3-1
- Browser: Brave-Origin (AUR
brave-origin-bin) - Profile path:
~/.config/BraveSoftware/Brave-Origin - Flags file:
~/.config/brave-origin-flags.conf(has--load-extension=...yt-dlp...) ✓ - NativeMessagingHosts: missing ✗
This is already fixed on quattro by #10292 (e8e92c509), which merged on 5 September but is not in a release yet: v4.0.3 and v4.0.4, the latest, still ship both installers without the Brave Origin profile.
The fix adds ~/.config/BraveSoftware/Brave-Origin (and its Beta and Nightly variants) to omarchy-install-chromium-ytdlp and omarchy-install-chromium-copy-url, and migrations/1788595060.sh reruns both installers, so an existing install gets both native messaging manifests on the update that carries it, without the manual workaround. I ran test/shell.d/chromium-ytdlp-test.sh and chromium-copy-url-test.sh from quattro on a clean Omarchy worker VM; both pass, including the checks that each manifest lands in the Brave-Origin profile. That is the installers tested, not Brave Origin itself driven end to end.
Codex Medium reviewed it independently and reached the same conclusion: fixed on quattro, pending release. It also checked that the extension IDs in allowed_origins match both extensions and that brave-origin-flags.conf loads them, so nothing else Origin-specific is missing.
This now waits on the maintainer: the issue can be closed once a release including #10292 ships. Your workaround remains the right stopgap until then.
This is already fixed on quattro (#10292) — both omarchy-install-chromium-ytdlp and omarchy-install-chromium-copy-url register Brave-Origin (+ Beta/Nightly). Not in v4.0.4 yet, so it will clear on the next release. #14724 is the same report.