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
[Feature Request]: support IME under native Wayland #33662
Comments
I'm working on implementing text-input-v3 to chromium. This issue could be solved with this patch. |
@OctopusET Just to understand what the stand is on Electron/Wayland. Would this patch solve the issues I've listed in this Phosh/squeekboard thread: https://gitlab.gnome.org/World/Phosh/squeekboard/-/issues/244#note_1581502 |
As far as I know, yes. |
hi, this bug has been fix? |
@Silentdoer Not yet, I'm currently working on now. |
@OctopusET do you need help? |
@stalkerg not now, but could you test it later? |
@OctopusET sure, one more question - is your chromium patch dependent on gtk4? |
no it isn't. GTK4 dependent patch is already there. |
It should be mentioned #33690 here, as I understand, no? |
@stalkerg chromium source has gtk4 patch but I think it hasn't enabled on electron. Patch url: https://chromium-review.googlesource.com/c/chromium/src/+/3220698 |
Anyone want to talk about this patch development, please come here. |
Just realized that KWin has got text-input-v1 support recently which makes input methods work in Chromium and Electron apps. (https://invent.kde.org/plasma/kwin/-/merge_requests/3403) |
@AllanChain is correct, and it's good, but it's anyway "deprecated" protocol. |
hello, can I ask how you're processing at the moment? |
In my environment (KDE Plasma 5.27.10 and fcitx5 5.1.7), the following flag works through text-input-v1.
|
While Kwin supports text-input-v1, the majority of compositors support the v3 variant |
I'm using Gnome and iBus. In Flatpak Chromium putting |
Try |
Didn't work for me unfortunately. This might be a Flatpak specific issue. |
@sith-on-mars you can probably put a chromium-flags.conf somewhere into your Flatpak with your desired flags. |
i dont know which side can solve this problem, so here is the Gnome repo, pls help to leave a comment or like: |
@forza91 just in case - IME input for VSCode not working even under KDE. |
No, bro. Fcitx5 works in KDE Plasma 5.27 with virtual keyboard is on. Native wayland vscode. You can check the previous comment in this thread |
For vscode and such electron apps, to enable wayland IME support must specify the To enable wayland support, we can directly set the ozone platform hint in the environment variable, which will not be overwritten by the package manager. However, currently just to enable the wayland input method, every time the app updates to a newer version, i will have to modify the startup script again. Could we just add a feature that can detect the platform hint environment variable and enable wayland ime by default if the platform hint is wayland or simply add another environment variable called |
You make a local copy of the desktop file in |
Thanks, I forgot that Desktop Entry can be overwritten:
|
Just a notice: this workaround requires a compositor supporting text-input-v1, which GNOME's mutter and many other compositors lack or have problematic implementations. |
Yeah, this is a non-solution, not even a workaround. It's just utilizing a feature that Electron already has. Nevertheless, the maintainers of Visual Studio Code really could do nothing about this (besides trying to patch, or even better, send PRs to, Electron), as the problem clearly lies with Electron, and is a systematic issue without easy workarounds. |
Preflight Checklist
Problem Description
Chrome doesn't support IME under native Wayland before ver 98, and IME only works if
gtk-version=4
is enabled after. However when I pass that flag to electron, it would crash sayingGTK 2/3 symbols detected. Using GTK 2/3 and GTK 4 in the same process is not supported
Proposed Solution
No idea
Alternatives Considered
No idea too
Additional Information
No response
The text was updated successfully, but these errors were encountered: