From 89279a66f4c6c32ea39940a6af63171dae75aafd Mon Sep 17 00:00:00 2001 From: Yiheng He Date: Wed, 2 Apr 2025 08:05:28 +0800 Subject: [PATCH] fcitx5: set SDL_IM_MODULE (#6742) Sets SDL_IM_MODULE to fcitxto make fcitx5 work with sdl2 programs. See fcitx-im.org/wiki/Setup_Fcitx_5#SDL_IM_MODULE and wiki.archlinux.org/title/Fcitx5#IM_modules --- modules/i18n/input-method/fcitx5.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/i18n/input-method/fcitx5.nix b/modules/i18n/input-method/fcitx5.nix index be239b30f..2b18967da 100644 --- a/modules/i18n/input-method/fcitx5.nix +++ b/modules/i18n/input-method/fcitx5.nix @@ -1,5 +1,4 @@ { config, pkgs, lib, ... }: - let im = config.i18n.inputMethod; cfg = im.fcitx5; @@ -41,6 +40,7 @@ in { home = { sessionVariables = { GLFW_IM_MODULE = "ibus"; # IME support in kitty + SDL_IM_MODULE = "fcitx"; XMODIFIERS = "@im=fcitx"; } // lib.optionalAttrs (!cfg.waylandFrontend) { GTK_IM_MODULE = "fcitx"; @@ -61,5 +61,4 @@ in { Install.WantedBy = [ "graphical-session.target" ]; }; }; - }