Now that I have completely migrated all my computers to Guix, I have to input Chinese on Guix. (I am a Chinese.) The only option for me is libpinyin in either ibus or fcitx, but I want to use the Rime Input Method Engine. Again, I have to port this software to Guix by myself, because I know Guix is so rare among Chinese geeks that no one else will do this for me.
The work has been finished.
Initially I had difficulty to run IBus within GTK apps. Then by reading guix’s source code, I found out I have to set these two environment variables:
export GUIX_GTK2_IM_MODULE_FILE=/run/current-system/profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache export GUIX_GTK3_IM_MODULE_FILE=/run/current-system/profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache
As usual, the following environment variables are needed too:
export GTK_IM_MODULE="ibus" export QT_IM_MODULE="ibus" export XMODIFIERS="@im=ibus"
There is no public document on the Internet on how to run IBus/Fcitx on Guix. I googled, but found no result. Follow these settings if you also run IBus/Fcitx on Guix.