Repository navigation
Add LibreWolf as supported browser #13309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: quattro
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| #!/bin/bash | ||
|
|
||
| # omarchy:summary=Remove a supported browser and clean up Omarchy browser defaults | ||
| # omarchy:args=<chrome|brave|brave-origin|edge|firefox|zen> | ||
| # omarchy:args=<chrome|brave|brave-origin|edge|firefox|librewolf|zen> | ||
| # omarchy:examples=omarchy remove browser firefox | omarchy remove browser brave | ||
| # omarchy:requires-sudo=true | ||
|
|
||
|
|
@@ -58,13 +58,18 @@ firefox) | |
| set_fallback_default_browser firefox.desktop | ||
| omarchy-pkg-drop firefox | ||
| ;; | ||
| librewolf) | ||
| echo "Removing LibreWolf..." | ||
| set_fallback_default_browser librewolf.desktop | ||
| omarchy-pkg-drop librewolf | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The installer writes an Omarchy-managed file under Knowledge Base Used: Packages, apps, and optional services |
||
| ;; | ||
| zen) | ||
| echo "Removing Zen..." | ||
| set_fallback_default_browser zen.desktop | ||
| omarchy-pkg-drop zen-browser-bin | ||
| ;; | ||
| *) | ||
| echo "Usage: omarchy-remove-browser <chrome|brave|brave-origin|edge|firefox|zen>" | ||
| echo "Usage: omarchy-remove-browser <chrome|brave|brave-origin|edge|firefox|librewolf|zen>" | ||
| exit 1 | ||
| ;; | ||
| esac | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "__COMMENT__ Omarchy": "Omarchy owns only the Preferences below. LibreWolf loads /etc/librewolf/policies/policies.json instead of its packaged policies, never both, so omarchy-install-browser merges this file over /usr/lib/librewolf/distribution/policies.json with jq. Keeping this file minimal means LibreWolf policy updates can never drift.", | ||
| "policies": { | ||
| "Preferences": { | ||
| "apz.overscroll.enabled": { | ||
| "Value": true, | ||
| "Status": "default" | ||
| }, | ||
| "media.ffmpeg.vaapi.enabled": { | ||
| "Value": true, | ||
| "Status": "default" | ||
| }, | ||
| "media.hardware-video-decoding.force-enabled": { | ||
| "Value": true, | ||
| "Status": "default" | ||
| }, | ||
| "widget.disable-swipe-tracker": { | ||
| "Value": false, | ||
| "Status": "default" | ||
| }, | ||
| "widget.wayland.fractional-scale.enabled": { | ||
| "Value": true, | ||
| "Status": "default" | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -226,6 +226,7 @@ | |
| "setup.default.browser.brave-origin": {"icon":"","label":"Brave Origin","checked":"[[ \"$(omarchy-default-browser)\" == \"brave-origin\" ]]","action":"omarchy-default-browser brave-origin"}, | ||
| "setup.default.browser.edge": {"icon":"","label":"Edge","checked":"[[ \"$(omarchy-default-browser)\" == \"edge\" ]]","action":"omarchy-default-browser edge"}, | ||
| "setup.default.browser.firefox": {"icon":"","label":"Firefox","checked":"[[ \"$(omarchy-default-browser)\" == \"firefox\" ]]","action":"omarchy-default-browser firefox"}, | ||
| "setup.default.browser.librewolf": {"icon":"\uE920","iconFont":"omarchy","label":"LibreWolf","checked":"[[ \"$(omarchy-default-browser)\" == \"librewolf\" ]]","action":"omarchy-default-browser librewolf"}, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The three new LibreWolf menu entries are missing from File Used: Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||
| "setup.default.browser.zen": {"icon":"","label":"Zen","checked":"[[ \"$(omarchy-default-browser)\" == \"zen\" ]]","action":"omarchy-default-browser zen"}, | ||
| "setup.default.dictation": {"icon":"","label":"Dictation","title":"Default Dictation"}, | ||
| "setup.default.dictation.superwhisper": {"icon":"","label":"Superwhisper","checked":"[[ \"$(omarchy-default-dictation)\" == \"superwhisper\" ]]","action":"omarchy-default-dictation superwhisper"}, | ||
|
|
@@ -294,6 +295,7 @@ | |
| "install.browser.brave": {"icon":"","label":"Brave","disabled":"omarchy-pkg-present brave-bin","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-browser brave'"}, | ||
| "install.browser.brave-origin": {"icon":"","label":"Brave Origin","disabled":"omarchy-pkg-present brave-origin-bin","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-browser brave-origin'"}, | ||
| "install.browser.firefox": {"icon":"","label":"Firefox","disabled":"omarchy-pkg-present firefox","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-browser firefox'"}, | ||
| "install.browser.librewolf": {"icon":"\uE920","iconFont":"omarchy","label":"LibreWolf","disabled":"omarchy-pkg-present librewolf","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-browser librewolf'"}, | ||
| "install.browser.zen": {"icon":"","label":"Zen","disabled":"omarchy-pkg-present zen-browser-bin","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-browser zen'"}, | ||
| "install.service.1password": {"icon":"","label":"1Password","disabled":"omarchy-pkg-present 1password","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-service-1password"}, | ||
| "install.service.dropbox": {"icon":"","label":"Dropbox","when":"[[ $(getconf PAGESIZE) == 4096 ]]","disabled":"omarchy-pkg-present dropbox","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-service-dropbox"}, | ||
|
|
@@ -383,6 +385,7 @@ | |
| "remove.browser.brave": {"icon":"","label":"Brave","when":"omarchy-pkg-present brave-bin","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-remove-browser brave'"}, | ||
| "remove.browser.brave-origin": {"icon":"","label":"Brave Origin","when":"omarchy-pkg-present brave-origin-bin","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-remove-browser brave-origin'"}, | ||
| "remove.browser.firefox": {"icon":"","label":"Firefox","when":"omarchy-pkg-present firefox","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-remove-browser firefox'"}, | ||
| "remove.browser.librewolf": {"icon":"\uE920","iconFont":"omarchy","label":"LibreWolf","when":"omarchy-pkg-present librewolf","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-remove-browser librewolf'"}, | ||
| "remove.browser.zen": {"icon":"","label":"Zen","when":"omarchy-pkg-present zen-browser-bin","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-remove-browser zen'"}, | ||
| "remove.service.1password": {"icon":"","label":"1Password","when":"omarchy-pkg-present 1password","action":"omarchy-launch-floating-terminal-with-presentation omarchy-remove-service-1password"}, | ||
| "remove.service.dropbox": {"icon":"","label":"Dropbox","when":"omarchy-pkg-present dropbox","action":"omarchy-launch-floating-terminal-with-presentation omarchy-remove-service-dropbox"}, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The LibreWolf branch skips
omarchy-lifecycle-dispatch post-install librewolf. The repository contract requires every browser installer to run this step after setup and before announcing success. Every other browser branch does so. Add the call here so platform packages can apply their LibreWolf setup. This repository requirement must be satisfied before merging.File Used:
docs/lifecycle-dispatch.md(source)