Issues using Fcitx 5 on KDE Wayland

This has been an issue ever since I started using EndeavourOS on my computer but I never got around to fixing it. I am attempting to use Fcitx 5 so I can type in Japanese (using mozc) but it has not been working, I am only able to type in English and I am given this message each time I boot into EndeavourOS:

Fcitx should be launched by KWin under KDE Wayland in order to use Wayland input method frontend. This can improve the experience when using Fcitx on Wayland. To configure this, you need to go to “System Settings” → “Virtual keyboard” and select “Fcitx 5” from it. You may also need to disable tools that launches input method, such as imsettings on Fedora, or im-config on Debian/Ubuntu. For more details see https://fcitx-im.org/wiki/Using_Fcitx_5_on_Wayland#KDE_Plasma

I have selected the Fcitx 5 Wayland launcher in KDE settings (I also tried the regular Fcitx 5 option, it did not seem to change anything) but to no avail. The Japanese input works in Tor Browser and I believe that is because it is running under the Wayland to X11 bridge (I used something in the terminal in the past to confirm that but I forgot what it was).

I added these lines to the /etc/environment file as suggested by some websites:

XMODIFIERS=@im=fcitx
#GTK_IM_MODULE=fcitx
#QT_IM_MODULE=fcitx

I tried following other guides and forum posts but I was not able to get it working. It is possible that I made some mistakes. Fcitx 5 with Japanese input works perfectly fine on my other EndeavourOS installation that uses xfce and is running under X11.

If it is not possible for this to be fixed then I can make do, I have other options for if I need Japanese input. I greatly appreciate in advance anyone who takes the time to look at my post.

Maybe these are helpful commands in getting fcitx5 and mozc_tool to KDE wayland session

# maybe this way clean install?
sudo pacman -R fcitx5-mozc   # if you have this conflicting
yay -S fcitx5-mozc-ut        # all in one

#when mozc_tool --mode=config_dialog this doesnt work - enforce to X11 mode
QT_QPA_PLATFORM=xcb /usr/lib/mozc/mozc_tool --mode=config_dialog
#perhaps choose Keymap → MS-IME

#fiddle e.g. ctrl-space shortcut, and ensure you have mozc
fcitx5-configtool

#restart
fcitx5 -r

#toggle hiragana input without ctrl+space
fcitx5-remote -s mozc
あ
fcitx5-remote -n

#toggle back 
fcitx5-remote -s keyboard-fi-mac
öö
fcitx5-remote -n

Also the keyboard combos need some rehearse:

write: あめ
Space → kanji
Enter → approve

transl.:
F6 → hiragana
F7 → katakana
F8 → half-width katakana

rgrds Paavo

Thank you for the reply. It will take some time before I can give it a proper try and provide an update as I am having issues with my internet and cloning into the git repository - I had it running for about 3 hours and it still did not complete. I will try again later.

I just tried these commands but to no avail, I am still getting the message seen in the initial post and I am not able to type in Japanese - only in Tor Browser since that is running via a Wayland to X11 bridge (I assume). Would you have any other suggestions?

In case it matters here was the output when the command fcitx -r was run.
I2026-06-02 18:59:59.823228 instance.cpp:1420] Override Enabled Addons: {}
I2026-06-02 18:59:59.827522 instance.cpp:1421] Override Disabled Addons: {}
I2026-06-02 18:59:59.831552 addonmanager.cpp:204] Loaded addon wayland
I2026-06-02 18:59:59.834970 xcbconnection.cpp:198] Connecting to X11 display, display name::1.
I2026-06-02 18:59:59.835020 xcbconnection.cpp:203] X11 display: :1 is xwayland.
I2026-06-02 18:59:59.835087 addonmanager.cpp:204] Loaded addon xcb
I2026-06-02 18:59:59.836657 addonmanager.cpp:204] Loaded addon quickphrase
I2026-06-02 18:59:59.836904 addonmanager.cpp:204] Loaded addon imselector
I2026-06-02 18:59:59.837914 keyboard.cpp:229] Attempting to load keyboard from: [“/usr/share/xkeyboard-config-2”] Rule: evdev
I2026-06-02 18:59:59.842843 addonmanager.cpp:204] Loaded addon keyboard
I2026-06-02 18:59:59.843426 addonmanager.cpp:204] Loaded addon clipboard
I2026-06-02 18:59:59.843756 addonmanager.cpp:204] Loaded addon waylandim
I2026-06-02 18:59:59.844016 addonmanager.cpp:204] Loaded addon unicode
I2026-06-02 18:59:59.845243 addonmanager.cpp:204] Loaded addon dbus
I2026-06-02 18:59:59.845996 addonmanager.cpp:204] Loaded addon dbusfrontend
I2026-06-02 19:00:00.035050 addonmanager.cpp:204] Loaded addon fcitx4frontend
I2026-06-02 19:00:00.036753 addonmanager.cpp:204] Loaded addon ibusfrontend
E2026-06-02 19:00:00.037854 xim.cpp:179] Failed to open xim, retrying.
I2026-06-02 19:00:01.038145 addonmanager.cpp:204] Loaded addon xim
I2026-06-02 19:00:01.677853 inputmethodmanager.cpp:210] Found 749 input method(s) in addon keyboard
I2026-06-02 19:00:01.703700 addonmanager.cpp:204] Loaded addon kimpanel
I2026-06-02 19:00:01.704270 addonmanager.cpp:204] Loaded addon virtualkeyboard
I2026-06-02 19:00:01.759812 classicui.cpp:89] Created classicui for x11 display::1
I2026-06-02 19:00:01.759897 classicui.cpp:110] Created classicui for wayland display:
I2026-06-02 19:00:01.759923 addonmanager.cpp:204] Loaded addon classicui
I2026-06-02 19:00:01.760548 addonmanager.cpp:204] Loaded addon notificationitem
I2026-06-02 19:00:01.761233 addonmanager.cpp:204] Loaded addon notifications
I2026-06-02 19:00:01.886058 dbusmodule.cpp:841] Service name change: org.fcitx.Fcitx5 :1.30990
I2026-06-02 19:00:01.886333 kimpanel.cpp:116] Kimpanel new owner:
I2026-06-02 19:00:01.886401 virtualkeyboard.cpp:218] VirtualKeyboard new owner:
I2026-06-02 19:00:01.886463 portalsettingmonitor.cpp:97] A new portal show up, start a new query.
I2026-06-02 19:00:01.886678 portalsettingmonitor.cpp:97] A new portal show up, start a new query.
I2026-06-02 19:00:02.805328 addonmanager.cpp:204] Loaded addon mozc
I2026-06-02 19:00:07.043994 waylandmodule.cpp:663] Wayland self diagnose information
I2026-06-02 19:00:07.044049 waylandmodule.cpp:664] Using Wayland native input method protocol: 0
I2026-06-02 19:00:07.044065 waylandmodule.cpp:666] Toolkit specific environment variable detected by process:
I2026-06-02 19:00:07.044075 waylandmodule.cpp:668] GTK_IM_MODULE=
I2026-06-02 19:00:07.044085 waylandmodule.cpp:669] QT_IM_MODULE=
I2026-06-02 19:00:07.044094 waylandmodule.cpp:670] QT_IM_MODULES=

I attempted to change the environment file to this:

XMODIFIERS=@im=fcitx
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx

However that did not seem to have any effect. I am not sure what else I can try in order to fix this issue.

Hi @Dimo ,
Do not overcomplicate it.
sudo pacman -S fcitx5 fcitx5-mozc fcitx5-qt fcitx5-gtk fcitx5-configtool noto-fonts-cjk
Settings Virtual Keyboard select Fcitx5 Wayland Laucher (experimental)
Input Method add mozc
The default toggle is Ctrl+space
頑張って

@eso I greatly appreciate your reply. I ran the command as you suggested. I already had most of them installed but fcitx5-mozc replaced mozc-ut which I had installed previously. The Japanese input is working in more places now (like in the test input space in KDE settings and Kate text editor) however it is still not working in some places that I would benefit the most from (like web browsers and Discord clients). I remember seeing that getting Japanese input in browsers was a bit more involved but would you happen to know how I could get the Japanese input working in other applications as well?

You need to be in an input field or mode.
Discord works in Firefox and in AUR app as well here.
/etc/environment
is empty with me.
Could you be a bit more specific? What app does not work? Emacs?