Skip to content

Image: upstream's command texts and its browser policy helper - #292

Open
jannyg wants to merge 3 commits into
OrchardLinux:mainfrom
jannyg:image-i18n-helpers
Open

jannyg wants to merge 3 commits into
OrchardLinux:mainfrom
jannyg:image-i18n-helpers

Conversation

@jannyg

@jannyg jannyg commented Dec 4, 2026

Copy link
Copy Markdown

Disclaimer: This is not my primary field. The change has been mostly vibe coded (with Claude) and tested only on my own device, an iPad Air 2 Cellular (j82).

Fixes #278
Fixes #279

What was wrong

desktop/install-tree ships upstream's bin/ but not the files those commands read:

The change

desktop/install-tree now also takes, from upstream at the pin:

  • default/i18n/<language>/cli.json for each of upstream's 50 languages. English is upstream's with our en/cli.json merged over it (jq -s '.[0] * .[1]'), written with mode 644. Our 19 keys are currently identical to upstream's, so no text changes. The shell's own texts (shell.json) stay ours.
  • The browser policy helper install/helpers/as-root.sh and browser-policy.sh, and what it installs: default/chromium/ (policies, native messaging hosts, extensions), default/firefox/policies.json and config/chromium-flags.conf.

Plus docs/upstream.md (what is taken from upstream besides bin/), stand-ins in tests/package_tree.py, and tests/test_upstream_files.py.

Deliberately left out: upstream's other install/helpers (pacman.sh, image-target.sh, logging.sh and others). They serve upstream's installer and pacman channels. pacman.sh writes upstream's repository templates over pacman.conf, which isn't the tablet's setup. So the commands that need it (omarchy-channel-set and the others listed in #279) still fail. I think they should be hidden or held on Omarchy A rather than made to work; that can be a separate issue.

Tested

On the iPad Air 2 (j82), with the new files unpacked into /usr/share/omarchy:

  • Setup → Defaults → Terminal: the notification reads "Ghostty is now the default terminal" (was default.terminalSet).
  • Install → Web App: the prompts show their texts (were webapp.intro, tui.namePrompt).
  • omarchy-install-browser chromium: installs Chromium from the omarchy repository and ends with "Chromium browser installed…", exit 0.
  • Install → Browser → Brave now gets past the policy helper and stops on yay: command not found. The AUR browsers (Brave, Brave Origin, Zen) need yay, which Omarchy A doesn't ship. That's a separate issue.

The new tests pass; the full suite gives the same result as main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SLbz23ZoimaemGQ2yfdfhR

jannyg and others added 3 commits December 4, 2026 12:47
install-tree copied upstream's bin/ but not the files those commands
read. omarchy-i18n printed bare keys (webapp.intro, tui.intro,
default.terminalSet) for every upstream text outside our 19, and
Install > Browser stopped on a missing install/helpers/browser-policy.sh.

The image now takes upstream's cli.json in each of its languages at the
pin, English with ours over it, written readable by everyone. It also
takes the browser policy helper (as-root.sh, browser-policy.sh) and what
it installs: default/chromium/, default/firefox/policies.json and
config/chromium-flags.conf. Upstream's other install/helpers serve its
installer and pacman channels and stay out: pacman.sh would write
upstream's repository templates over the tablet's pacman.conf.

Tested on an iPad Air 2 (j82): Setup > Defaults > Terminal and Install >
Web App show their texts, and omarchy-install-browser chromium installs
Chromium and ends well.

Fixes OrchardLinux#278
Fixes OrchardLinux#279

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SLbz23ZoimaemGQ2yfdfhR
Upstream's copy-url/icon.png links to upstream's own icon.png, and the
copy took regular files only, so Chromium refused the extension: "Could
not load icon 'icon.png' specified in 'icons'". The copy follows links
within upstream's tree now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SLbz23ZoimaemGQ2yfdfhR
@jannyg
jannyg marked this pull request as ready for review December 4, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant