omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Brave-Origin missing from native messaging host registration (yt-dlp + copy-url)

Open Baniel83 opened this issue 2 months ago • 2 comments

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

  1. Install brave-origin-bin from AUR
  2. Open Brave-Origin with a YouTube video playing
  3. Press Alt+Shift+D (or click the extension toolbar icon)
  4. 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 ✗

Baniel83 avatar Sep 09 '26 13:09 Baniel83

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.

omarchybot avatar Oct 11 '26 10:10 omarchybot

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.

jandrusk avatar Oct 13 '26 16:10 jandrusk