Skip to content
Xeron
Go back

Fixing IME on Wayland

Published:
Suggest Changes

On Wayland, typing Chinese fast in Electron apps (like Cherry Studio) scrambles the characters — they shuffle and reorder. Type slowly and it’s fine. Happens across multiple Electron apps, so it’s clearly Electron’s input path on Wayland/XWayland, not the IME itself.

Others hit the same issue: Cherry Studio #104

Fix

Enable native Wayland IME and Ozone for Electron. Edit ~/.config/electron-flags.conf:

--enable-wayland-ime
--ozone-platform-hint=auto
--ozone-platform=wayland
--enable-features=UseOzonePlatform,WaylandWindowDecorations

Save, then fully quit the target app and reopen (not just close the window — kill the process). Most Electron apps read this file automatically and switch to the native input path. The scrambling stops.

Two gotchas:


Suggest Changes
Share this post on:

Previous Post
Fixing npm Global Install Permission Errors
Next Post
Fixing the Web3 "Replacement Transaction Underpriced" Error