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:
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
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?
@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?