Closed kekkoudesu closed 11 months ago
Problem resolved. Immediately after posting, of course.
I forgot to add 5
to the end of fcitx
. This is what the content of `/etc/profile.d/fcitx5.sh should be:
GTK_IM_MODULE=fcitx5 && export GTK_IM_MODULE
QT_IM_MODULE=fcitx5 && export QT_IM_MODULE
XMODIFIERS=@im=fcitx5 && export XMODIFIERS
Cheers to #841 for linking me to https://srobb.net/jpninpt.html#Fedora which is what told me I had to do this.
Once again, I'll remind you that if you're using fcitx5 you may have to specify fcitx5, rather than fcitx.
I dont think you need 5. I think you just need reboot or sth similar.
The thing is that systemd user may fail to populate your environment variable without reboot(login out is not enough)
Also, since you are using wayland, I'd suggest you remove that file, select fcitx in systemsettings - virtual keyboard., and reboot.
environment variables in shell may give you false impression that it's working while it's not set to the whole desktop session.
Actually, I guess it only works in Alacritty. I can't get it to work on Firefox, KWrite, Thunderbird, etc...
I think you just need reboot or sth similar.
See, that's the strange thing. This is the fifth time I've rebooted since installing fcitx and it didn't make any difference. It only changed when I changed the environment variable. Although at the same time I also added fcitx as a virtual keyboard, so it was probably that instead actually.
I'll remove the file and reboot, then see what happens.
@kekkoudesu the XMODIFIERS root window none indicates you may have imsettings left over files.
can you also check ~/.config/environment.d/ ?
I actually installed Fedora 3 days ago and fcitx5-mozc was the first thing I installed related to IME. My computer took about ten minutes to reboot, apologies...
So I removed all the files that specified environment variables that I created. There was nothing in ~/.config/environment.d
. Once again the only program that works is Alacritty. It doesn't work in Konsole, KWrite, Firefox, Thunderbird, or GIMP.
Now that the files have been removed but virtual keyboard is still set, env | grep QT
gives me:
QT_IM_MODULE=xim
Should I run fcitx5-diagnose
again?
Small clarification: I can now switch to Mozc on Firefox, but Hiragana doesn't come out when I type. Just English letters.
Or, actually, it's really inconsistent...now the radio buttons won't show again!
I believe it’s imsettings which is a fedora specific tool.
actually, maybe you could launch imchooser(gui frontend for imsettings) and select fcitx5?
I’ll try it in VM to get a better idea about what does fedora do… I feel there are so many things get in the way…
I believe it’s imsettings which is a fedora specific tool.
actually, maybe you could launch imchooser(gui frontend for imsettings) and select fcitx5?
Thank you for this suggestion, it worked!
I killed fcitx and ran im-chooser
from CLI, then clicked fcitx. Then I logged out and logged back in again.
やっとできました!
Sorry for not replying for 2 hours. You're awesome, thank you for helping! I'm completely new to Fedora and have been having a lot of trouble getting various stuff set up. I'm glad to tick this one off the list :)
Describe the bug I'm trying to input Japanese characters with fcitx5-mozc on KDE Wayland, Fedora 38.
I have this set in
/etc/profile.d/fcitx
:fcitx5-diagnose
tells me the environment variables are set correctly. I can confirm that myself when runningenv
in a terminal.I see two options (US and Mozc), but neither of the radio buttons is selected. After I click Mozc, the radio button is still unselected and I can't input Japanese characters.
I've tried inputting characters on Firefox, Alacritty, and Kwrite.
Reproducible: Always
Steps to Reproduce:
To Reproduce Steps to reproduce the behavior:
Expected behavior I can type in 日本語.
Desktop (please complete the following information):
Output of fcitx5-diagnose:
Additional context You can see that in the screenshot below, neither US nor Mozc is selected:
I've set Fcitx as the Virtual Keyboard in KDE.
Packages installed: