My setting is setenv LANG en_US.UTF-8 setenv XMODIFIERS "@im=fcitx" setenv LC_CTYPE zh_CN.UTF-8 It works well in gtk3 (like x11/sakura ) and qt4 (graphics/qcomicbook),and even normal X program like x11/xterm, but can not works in any gtk2, qt5 nor linux programmes such as graphics/gimp, editors/libreoffice, www/chromium, print/lyx, www/linux-firefox, www/flashplayer. both chinese/fcitx and chinese/ibus-pinyin have the same problem, even I installed the package textproc/fcitx-qt5.
(In reply to dybnu from comment #0) Can you try set GTK_IM_MODULE=fcitx and QT_IM_MODULE=fcitx also?
(In reply to lichray from comment #1) qt5 programmes work with QT_IM_MODULE=fcitx , but gtk2 and linux still keep quiet.
(In reply to dybnu from comment #2) I don't think GTK IM module support Linux at the same time, because that will require a Linux binary of the module. About Gtk2, can you confirm that the GTK2 option of your fcitx port is selected and the installed version has that option turned on?
(In reply to lichray from comment #3) I used to install fcitx from pkg. With your suggestion I reinstall it from ports ,and it finally get into work with gtk2. So ,I reinstall it from pkg again , it continue works, of cause, "GTK_IM_MODULE=fcitx" needs to be set. And the linux problem ,it used to work very well in the linux_fc6 age. linux_f10, linux_c6, linux_c7 can't
(In reply to lichray from comment #3) btw, please add a pkg-message include the "QT_IM_MODULE=fcitx" setting to textproc/fcitx-qt5 to make it works well. Thank you.
(In reply to dybnu from comment #5) You can contribute a patch right? I will take care of the rest :)
(In reply to dybnu from comment #4) It may be hard for you to confirm whether those Linux bases were using XIM interface right now, but let me ask the author and come back to you...
Created attachment 178877 [details] patches to add a pkg-message for textproc/fcitx-qt5
Created attachment 178878 [details] patches to add a pkg-message for textproc/fcitx-qt5
(In reply to lichray from comment #6) I don't know how to make a patch exactly, but these two files works in my PC.
(In reply to lichray from comment #7) still doesn't work in linux program.
Is this still an issue?