After updating to NixOS unstable and having to switch from fctix to fcitx5 I can no longer use it in some applications despite installing all relevant add-ons.
Here is my config:
i18n.inputMethod = {
enabled = “fcitx5”;
fcitx5.addons = with pkgs; [
fcitx5-with-addons
fcitx5-rime
fcitx5-gtk
libsForQt5.fcitx5-qt
fcitx5-chinese-addons
fcitx5-table-other
fcitx5-configtool
fcitx5-hangul
fcitx5-unikey
fcitx5-m17n
fcitx5-mozc
fcitx5-lua
];
};
After researching a bit in the Arch wiki (NixOS version basically doesn’t exist) I tried to add
environment.sessionVariables = {
GTK_IM_MODULE = “fcitx”;
QT_IM_MODULE = “fcitx”;
XMODIFIERS = “@im=fcitx”;
};
to the session variables, but it doesn’t appear to affect anything.
Rather curiously, it does work as expected with flatpak version of Telegram, it’s just a nix store version that is problematic.
Does anyone have an idea what may be the reason?