ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.65k stars 312 forks source link

fcitx5 input method cannot be launched in KDE Plasma 6 Wayland #1522

Open skjongithub opened 3 months ago

skjongithub commented 3 months ago

This issue is unique.

Operating System

Linux (DEB package)

Version information

version 8.0.1.31 (deb)

Expected Behavior

ctrl+space should toggle fcitx Chinese input method on and off within Onlyoffice Document

Actual Behavior

ctrl+space does not work, and I can only type English within Onlyoffice Document

Reproduction Steps

Upgrade Arch linux from KDE Plasma 5 (Xorg env) to Plasma 6 (Wayland env)

Additional information

No response

natewu commented 3 months ago

also on plasma 6 xorg

skjongithub commented 3 months ago

I might find a way out, using Wayland environment

1st (in fact I dont know if this is necessary): In your ~/.xprofile (or anyother login script your Xorg), comment out (or delete) all lines about input method

2nd In your ~/.config/environment.d/*.conf (I'm using Garuda Linux, so this is garuda.conf in my circumstance) paste these:

GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx SDL_IM_MODULE=fcitx GLFW_IM_MODULE=ibus

3rd In KDE setting/keyboard/virtual keyboard: select fcitx

4th restart your computer

(5th: re-install OnlyOffice?)

And then I can use fcitx5-mcbopomofo to type traditional Chinese in OnlyOffice under Wayland session.