KDE裝 FCITX5中文輸入法教學 - wayland
原文
KDE Plasma
Best setup:
- KDE Plasma 5.27 or later
- Environment variables:
- Set
XMODIFIERS=@im=fcitx
for XWayland application - Start fcitx5 by go to "System settings" -> "Virtual keyboard" -> Select Fcitx 5
- Do not set
GTK_IM_MODULE
&QT_IM_MODULE
&SDL_IM_MODULE
. You could unsetGTK_IM_MODULE
&QT_IM_MODULE
by runingim-config
and then selectingdo not set any IM from im-config and use desktop default"
- Run chromium/electron application with
--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime
- Set
- Caveats:
- Certain Gtk/Qt application that only works under X11 may still need to set
GTK_IM_MODULE
orQT_IM_MODULE
for them individually. - If you set
GTK_IM_MODULE/QT_IM_MODULE
globally, you will hit this issue Candidate window is blinking under wayland with Fcitx 5
- Certain Gtk/Qt application that only works under X11 may still need to set
Support Information:
- App/Compositor supports text-input-v2 and text-input-v3.
- Comopositor/Application uses zwp_input_method_v1.
- 5.27 additionally supports text-input-v1.
- 5.24 usable zwp_input_method_v1 with fcitx5. Pre-5.24 there are lots of problems, always use fcitx im module instead.
- Use "Virtual keyboard" KCM to launch fcitx5. This is required to use text-input protocol. If you launch fcitx this way, make sure you do not use "restart" in the tray menu, since the socket passed from KWin can not be reused with the newly restarted fcitx.
在 KDE系統設定鍵盤裡選虛擬鍵盤 -> FCITX5
sudo vim /etc/environment
GTK_IM_MODULE=fcitx5
QT_IM_MODULE=fcitx5
SDL_IM_MODULE=fcitx5
上述三項移除。
沒有留言:
張貼留言