Repository navigation
Enable Wayland input methods in Chromium-based browsers - #12139
akitaonrails wants to merge 3 commits into
Conversation
832e78f to
57b2b09
Compare
57b2b09 to
68104fe
Compare
|
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]>
68104fe to
c8be7be
Compare
|
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 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. |
|
Thank you for this. What it does is now on 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. This was checked against |
Summary
--enable-wayland-imetoconfig/chromium-flags.conf, so Chromium-based browsers take the Wayland text-input pathWhy
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-v3when--enable-wayland-imeis 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:
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-browsercopiesconfig/chromium-flags.confto~/.config/<browser>-flags.confat 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-imeis 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/shellfcitx5-mozc; typedakita, the candidate window listed 秋田 / 飽きた / アキタ and committed correctly