2025年9月26日 星期五

KDE裝 FCITX5中文輸入法教學 - wayland

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 unset GTK_IM_MODULE & QT_IM_MODULE by runing im-config and then selecting do 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
  • Caveats:

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

 上述三項移除。 

Powered By Blogger