Skip to content
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

Open
3 tasks done
Austaras opened this issue Apr 7, 2022 · 25 comments
Open
3 tasks done

[Feature Request]: support IME under native Wayland #33662

Austaras opened this issue Apr 7, 2022 · 25 comments

Comments

@Austaras
Copy link

Austaras commented Apr 7, 2022

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 saying GTK 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

@harmathy
Copy link

harmathy commented Aug 4, 2022

For reference: IME refers to something like ibus or fcitx.

@OctopusET
Copy link

I'm working on implementing text-input-v3 to chromium. This issue could be solved with this patch.
https://chromium-review.googlesource.com/c/chromium/src/+/3750452

@alariej
Copy link

alariej commented Oct 25, 2022

@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

@OctopusET
Copy link

As far as I know, yes.
Sorry for delays, I didn't have extra time. I think I can restart work soon,
Ref:
https://www.apertis.org/concepts/on-screen-keyboard/

@Silentdoer
Copy link

hi, this bug has been fix?

@OctopusET
Copy link

@Silentdoer Not yet, I'm currently working on now.

@stalkerg
Copy link

@OctopusET do you need help?

@OctopusET
Copy link

@stalkerg not now, but could you test it later?

@stalkerg
Copy link

@OctopusET sure, one more question - is your chromium patch dependent on gtk4?

@OctopusET
Copy link

no it isn't. GTK4 dependent patch is already there.

@stalkerg
Copy link

It should be mentioned #33690 here, as I understand, no?

@OctopusET
Copy link

OctopusET commented Jan 24, 2023

@stalkerg chromium source has gtk4 patch but I think it hasn't enabled on electron.
And this patch has some own bugs.

Patch url: https://chromium-review.googlesource.com/c/chromium/src/+/3220698

@OctopusET
Copy link

Anyone want to talk about this patch development, please come here.
https://matrix.to/#/#chromium-text-input-v3:matrix.org

@AllanChain
Copy link

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)

@stalkerg
Copy link

@AllanChain is correct, and it's good, but it's anyway "deprecated" protocol.

@Silentdoer
Copy link

hello, can I ask how you're processing at the moment?

@buresu
Copy link

buresu commented Feb 20, 2024

In my environment (KDE Plasma 5.27.10 and fcitx5 5.1.7), the following flag works through text-input-v1.

--enable-wayland-ime

@Kimiblock
Copy link

While Kwin supports text-input-v1, the majority of compositors support the v3 variant

@sith-on-mars
Copy link

I'm using Gnome and iBus. In Flatpak Chromium putting gtk-version=4 still couldn't get IME working.

@tecix
Copy link

tecix commented Feb 22, 2024

I'm using Gnome and iBus. In Flatpak Chromium putting gtk-version=4 still couldn't get IME working.

Try GTK_IM_MODULE=xim XMODIFIERS=@im=ibus google-chrome --gtk-version=4, this works for me.

@sith-on-mars
Copy link

I'm using Gnome and iBus. In Flatpak Chromium putting gtk-version=4 still couldn't get IME working.

Try GTK_IM_MODULE=xim XMODIFIERS=@im=ibus google-chrome --gtk-version=4, this works for me.

Didn't work for me unfortunately. This might be a Flatpak specific issue.

@C0rn3j
Copy link

C0rn3j commented Mar 6, 2024

@sith-on-mars you can probably put a chromium-flags.conf somewhere into your Flatpak with your desired flags.

@forza91
Copy link

forza91 commented Mar 26, 2024

i dont know which side can solve this problem, so here is the Gnome repo, pls help to leave a comment or like:
https://gitlab.gnome.org/GNOME/mutter/-/issues/3200

@stalkerg
Copy link

@forza91 just in case - IME input for VSCode not working even under KDE.

@forza91
Copy link

forza91 commented Mar 27, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests