Repository navigation
Conversation
|
yes pls pls |
7c577d8 to
1ffdc20
Compare
[Medium impact] The follow-up change appears safe to merge. SummaryAdds Helium to Omarchy’s browser menus and connects it to installation, default selection, removal, bundled extensions, and link handoff.
No new actionable issues found in the follow-up change. Reviews (6) · Last reviewed commit: "Keep Helium's flags file when its packag..." · Reviewed by Greptile |
|
Please don't merge this until omacom/omarchy-pkgs#1218 is merged and This PR installs Helium with |
59be816 to
d227aa5
Compare
|
omacom/omarchy-pkgs#1218 is merged and |
|
Tested this merged into current
Rebase conflicts are small: usage lines in Passing with the diff: Diff on top of this PR merged into quattrodiff --git a/bin/omarchy-cmd-browser-handoff b/bin/omarchy-cmd-browser-handoff
index 57f7d376a..6fc9f81aa 100755
--- a/bin/omarchy-cmd-browser-handoff
+++ b/bin/omarchy-cmd-browser-handoff
@@ -18,6 +18,7 @@ case $(type -P "$1") in
/usr/bin/brave) profile=BraveSoftware/Brave-Browser flags=brave-flags.conf ;;
/usr/bin/brave-origin) profile=BraveSoftware/Brave-Origin flags=brave-origin-flags.conf ;;
/usr/bin/microsoft-edge-stable) profile=microsoft-edge flags=microsoft-edge-stable-flags.conf ;;
+/usr/bin/helium-browser) profile=net.imput.helium flags=helium-browser-flags.conf ;;
*) exit 1 ;;
esac
shift
diff --git a/bin/omarchy-install-browser-extensions b/bin/omarchy-install-browser-extensions
index 0992b4d56..3e2d64324 100755
--- a/bin/omarchy-install-browser-extensions
+++ b/bin/omarchy-install-browser-extensions
@@ -1,17 +1,17 @@
#!/bin/bash
# omarchy:summary=Install Omarchy's bundled extensions in a Chromium-based browser, or check they are current
-# omarchy:args=[--check] <chromium|chrome|brave|brave-origin|edge>
+# omarchy:args=[--check] <chromium|chrome|brave|brave-origin|edge|helium>
# omarchy:examples=omarchy install browser extensions chromium | omarchy install browser extensions --check chrome
# omarchy:requires-sudo=true
# omarchy:hidden=true
# Every browser reaches the bundled extensions through copies taken when it was
-# set up: Chromium, Brave and Edge load them from the --load-extension line in
-# their flags file, Google Chrome (which ignores that flag) force-installs the
-# signed CRXs through its managed policy, and each profile registers native
-# hosts that must admit the extensions' ids. A new extension or new ids leave
-# those copies behind. Only Chrome's policy needs root.
+# set up: Chromium, Brave, Edge and Helium load them from the --load-extension
+# line in their flags file, Google Chrome (which ignores that flag)
+# force-installs the signed CRXs through its managed policy, and each profile
+# registers native hosts that must admit the extensions' ids. A new extension or
+# new ids leave those copies behind. Only Chrome's policy needs root.
set -euo pipefail
@@ -30,8 +30,9 @@ chromium) profile=chromium; flags=chromium-flags.conf ;;
brave) profile=BraveSoftware/Brave-Browser; flags=brave-flags.conf ;;
brave-origin) profile=BraveSoftware/Brave-Origin; flags=brave-origin-flags.conf ;;
edge) profile=microsoft-edge; flags=microsoft-edge-stable-flags.conf ;;
+helium) profile=net.imput.helium; flags=helium-browser-flags.conf ;;
*)
- echo "Usage: omarchy-install-browser-extensions [--check] <chromium|chrome|brave|brave-origin|edge>" >&2
+ echo "Usage: omarchy-install-browser-extensions [--check] <chromium|chrome|brave|brave-origin|edge|helium>" >&2
exit 1
;;
esac
diff --git a/bin/omarchy-install-chromium-copy-url b/bin/omarchy-install-chromium-copy-url
index 0ee586d63..d02a140ba 100755
--- a/bin/omarchy-install-chromium-copy-url
+++ b/bin/omarchy-install-chromium-copy-url
@@ -21,6 +21,7 @@ browser_dirs=(
"$HOME/.config/BraveSoftware/Brave-Origin-Nightly"
"$HOME/.config/microsoft-edge"
"$HOME/.config/microsoft-edge-dev"
+ "$HOME/.config/net.imput.helium"
)
manifest=$(sed "s|__HOST_PATH__|$HOST_PATH|g" "$TEMPLATE")
diff --git a/bin/omarchy-install-chromium-ytdlp b/bin/omarchy-install-chromium-ytdlp
index 63ba46d58..0a378ec39 100755
--- a/bin/omarchy-install-chromium-ytdlp
+++ b/bin/omarchy-install-chromium-ytdlp
@@ -22,6 +22,7 @@ browser_dirs=(
"$HOME/.config/BraveSoftware/Brave-Origin-Nightly"
"$HOME/.config/microsoft-edge"
"$HOME/.config/microsoft-edge-dev"
+ "$HOME/.config/net.imput.helium"
)
manifest=$(sed "s|__HOST_PATH__|$HOST_PATH|g" "$TEMPLATE")
diff --git a/default/i18n/en/menu.json b/default/i18n/en/menu.json
index 2f80209ef..30d497bb9 100644
--- a/default/i18n/en/menu.json
+++ b/default/i18n/en/menu.json
@@ -600,6 +600,9 @@
"setup.default.browser.zen": {
"label": "Zen"
},
+ "setup.default.browser.helium": {
+ "label": "Helium"
+ },
"setup.default.dictation": {
"label": "Dictation",
"title": "Default Dictation"
@@ -813,6 +816,9 @@
"install.browser.zen": {
"label": "Zen"
},
+ "install.browser.helium": {
+ "label": "Helium"
+ },
"install.service.1password": {
"label": "1Password"
},
@@ -1092,6 +1098,9 @@
"remove.browser.zen": {
"label": "Zen"
},
+ "remove.browser.helium": {
+ "label": "Helium"
+ },
"remove.service.1password": {
"label": "1Password"
},
diff --git a/test/shell.d/chromium-extensions-test.sh b/test/shell.d/chromium-extensions-test.sh
index fc9120d38..0871ad02e 100644
--- a/test/shell.d/chromium-extensions-test.sh
+++ b/test/shell.d/chromium-extensions-test.sh
@@ -177,6 +177,12 @@ repair brave-origin || fail "a commented-out --load-extension switch can be repa
fail "the repair adds a live --load-extension switch" "$(<"$flags_file")"
pass "switching to a browser repairs the bundled extensions it lacks and keeps the user's own"
+# Helium keeps its profile and flags file under its own names, and switching to
+# it fails unless the repair reaches both.
+repair helium || fail "Helium's bundled extensions can be repaired"
+repair --check helium || fail "a repaired Helium's bundled extensions are reported current"
+pass "switching to Helium sets up its bundled extensions"
+
# --- WhatsApp Slim ---
# The content script switches WhatsApp Web to its system theme mode, which itAs a branch: Duplicates: #5553 (oldest; DHH asked for an update in May), #8801, #12132, #16439. All conflict with The new flags file starts as a copy of Tested with Claude Opus 5.5 in Claude Code. |
Co-authored-by: mchisolm0 <39521893+mchisolm0@users.noreply.github.com>
Choosing Helium as the default ran the extension check, which rejected it, so the switch failed. Co-authored-by: mchisolm0 <39521893+mchisolm0@users.noreply.github.com>
Co-authored-by: mchisolm0 <39521893+mchisolm0@users.noreply.github.com>
d227aa5 to
c33b60a
Compare
|
Note 🤖 Claude Opus 5.5 responding on behalf of torturado @mchisolm0 All three fixes are in. The branch is rebased onto
Passing: |
Problem
Omarchy's browser workflows don't offer Helium, so it can't be installed, chosen as the default, or removed from the menu.
Solution
helium-browser-binfrom the Omarchy package repository withomarchy-pkg-add(published by Add helium-browser-bin 0.19.4.1 (fast ring) omarchy-pkgs#1218), copies the Omarchy flags to~/.config/helium-browser-flags.confand runs the post-install hook, like the other Chromium browsersomarchy-install-browser-extensionsHelium's profile (net.imput.helium) and flags file, and registers the copy-url and yt-dlp native hosts there, so switching to Helium no longer fails the extension checkomarchy-cmd-browser-handoff, so links reach a running Helium over its singleton socket instead of starting a second processdefault-apps-test.shandchromium-extensions-test.shThe extensions, handoff and i18n fixes come from @mchisolm0's review.
Made with Claude Opus 5.5 in Claude Code.