Skip to content

Enable Wayland input methods in Chromium-based browsers - #12139

Closed
akitaonrails wants to merge 3 commits into
omacom:quattrofrom
akitaonrails:chromium-wayland-ime
Closed

akitaonrails wants to merge 3 commits into
omacom:quattrofrom
akitaonrails:chromium-wayland-ime

Conversation

@akitaonrails

Copy link
Copy Markdown

Summary

  • add --enable-wayland-ime to config/chromium-flags.conf, so Chromium-based browsers take the Wayland text-input path
  • migrate existing installs, since the flags files are copied once at install time and never re-copied
  • cover the migration with a shell test

Why

Omarchy already runs fcitx5 in every session and the framework works: GTK, Qt and terminal apps accept input methods out of the box. Chromium is the exception — it only speaks text-input-v3 when --enable-wayland-ime is set. Without it, a user who installs an input engine gets working input everywhere except the default browser, with no error to explain why.

This is the missing half of #9634 (Add one-step Japanese input setup): that PR installs and registers the engine, and the browser can still drop it. It also relates to #7559, where the fcitx5/Mozc candidate window misbehaves in native-Wayland Chromium.

Verified on Omarchy 4.0.4 (fcitx5 5.1.22, Hyprland 0.56.2) with the flag applied — Brave registers Wayland input contexts, and Japanese conversion commits normally in both the browser and web apps:

$ fcitx5-diagnose | grep -oE 'program:[^ ]+ frontend:[a-z]+'
program:brave-browser frontend:wayland
program:brave-web.whatsapp.com__-Default frontend:wayland
program:kitty frontend:wayland

One caveat worth a maintainer's judgement: #11719 argues that current Chromium enables text-input-v3 by default and that the flag is redundant. I did not A/B test a build without it. Setting it explicitly removes that version-to-version variance, and it is inert for users who never run an IME — it enables a protocol path rather than changing behaviour.

Why a migration

bin/omarchy-install-browser copies config/chromium-flags.conf to ~/.config/<browser>-flags.conf at install time only, so changing the default alone would reach new installs and nobody else. The migration appends the flag to each flags file that exists, skips files that already carry it, and never creates one for a browser that is not installed — so removed browsers and hand-tuned flags are left as the user left them.

Notes

--enable-wayland-ime is a Chromium flag rather than a Brave one, so it applies equally to Chromium, Chrome, Brave, Brave Origin and Edge. That is why it belongs in the shared flags file instead of a per-browser one.

Testing

  • bash test/shell.d/chromium-wayland-ime-migration-test.sh — enables the flag, is idempotent, preserves customized flags, does not create files for uninstalled browsers
  • ./test/shell
  • manual: Brave on Hyprland with fcitx5-mozc; typed akita, the candidate window listed 秋田 / 飽きた / アキタ and committed correctly

@greptile-apps

greptile-apps Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adds a Wayland input method flag to browser configuration.

The PR appears safe to merge; both previously reported failures are fixed.

Summary

The PR enables Wayland IME for new Chromium-based browser installs, migrates existing flags files, and permits browser handoff with the new flag.

  • The handoff allowlist addresses the first previous finding.
  • The migration’s newline check addresses the second previous finding, with a regression test.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[New install] --> B[Shared Chromium flags]
  C[Existing install] --> D[Flags-file migration]
  B --> E[Wayland IME flag]
  D --> E
  E --> F[Browser handoff allowlist]
Loading

Reviews (2) · Last reviewed commit: "Add the Wayland IME flag on its own line"

Comment thread config/chromium-flags.conf Resolved
Comment thread migrations/1789574666.sh Resolved
AkitaOnRails and others added 3 commits October 6, 2026 12:27
The handoff treated --enable-wayland-ime as a flag of the user's and left
every launch to a second browser process.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
A flags file without a trailing newline had the flag appended to its last
argument.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@omarchybot omarchybot removed the enhancement New feature or request label Oct 14, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at c8be7be. Nothing was run yet: this is waiting on what kind of change it is before anyone spends a worker on it.

The two models that classify each item split on this one. Claude Opus 5.5 read it as an enhancement: it adds a flag to the shared Chromium flags so Wayland input methods reach the browser, and the description itself notes #11719's argument that current Chromium already enables text-input-v3 and the flag may be redundant, so whether the browser is broken today without it is not established. Codex at medium effort read it as a bug fix: fcitx5 works in every other app in the session and the default browser silently drops it. Both readings are reasonable, and they lead to different paths here, so I have removed the enhancement label rather than pick one.

What happens next is the maintainer's call: confirming it as a bug sends it to verification on a worker (reproducing the missing input on the base branch, then the flag fixing it), and treating it as a feature leaves it until it is assigned for work.

@omarchybot

Copy link
Copy Markdown
Collaborator

Thank you for this. What it does is now on quattro, so I am closing it.

Chromium has turned on Wayland text-input-v3 by default since M135, and Mozc was reproduced working in stock Chromium with Omarchy's default flags on #7559. docs/input-methods.md asks that browser input be verified against the shipped versions rather than flags from older guides. The candidate window misplacement that remains in Chromium is #7559.

This was checked against quattro by Claude, with Codex at medium effort verifying the claims above. If something here is still missing, say so and this can be reopened.

@omarchybot omarchybot closed this Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants