1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 09:09:45 +01:00

im/fcitx5: use home.sessionSearchVariables for QT_PLUGIN_PATH

This commit is contained in:
Thiago Kenji Okada 2023-10-18 21:50:35 +01:00
parent 7d4f510f26
commit 52ea78741b

View file

@ -23,13 +23,15 @@ in {
config = mkIf (im.enabled == "fcitx5") { config = mkIf (im.enabled == "fcitx5") {
i18n.inputMethod.package = fcitx5Package; i18n.inputMethod.package = fcitx5Package;
home.sessionVariables = { home = {
sessionVariables = {
GLFW_IM_MODULE = "ibus"; # IME support in kitty GLFW_IM_MODULE = "ibus"; # IME support in kitty
GTK_IM_MODULE = "fcitx"; GTK_IM_MODULE = "fcitx";
QT_IM_MODULE = "fcitx"; QT_IM_MODULE = "fcitx";
XMODIFIERS = "@im=fcitx"; XMODIFIERS = "@im=fcitx";
QT_PLUGIN_PATH = };
"$QT_PLUGIN_PATH\${QT_PLUGIN_PATH:+:}${fcitx5Package}/${pkgs.qt6.qtbase.qtPluginPrefix}"; sessionSearchVariables.QT_PLUGIN_PATH =
[ "${fcitx5Package}/${pkgs.qt6.qtbase.qtPluginPrefix}" ];
}; };
systemd.user.services.fcitx5-daemon = { systemd.user.services.fcitx5-daemon = {