about summary refs log tree commit diff
path: root/pkgs/games/steam
diff options
context:
space:
mode:
authorGuanran Wang <guanran928@outlook.com>2024-04-12 17:36:35 +0800
committerGuanran Wang <guanran928@outlook.com>2024-04-12 17:36:35 +0800
commit231bb74f99a9d7305169d9cafd95a0b412728b01 (patch)
treeccecba8f90d50827d03a68d94d0a967bda56915b /pkgs/games/steam
parentfce85f5e7c1a74168eb9fba5e03b78621b24bf3f (diff)
steamPackages.steam-fhsenv: fix IME issues
Diffstat (limited to 'pkgs/games/steam')
-rw-r--r--pkgs/games/steam/fhsenv.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/games/steam/fhsenv.nix b/pkgs/games/steam/fhsenv.nix
index 936a3510b31de..95668e1ecea99 100644
--- a/pkgs/games/steam/fhsenv.nix
+++ b/pkgs/games/steam/fhsenv.nix
@@ -68,6 +68,10 @@ let
   envScript = ''
     # prevents various error messages
     unset GIO_EXTRA_MODULES
+
+    # This is needed for IME (e.g. iBus, fcitx5) to function correctly on non-CJK locales
+    # https://github.com/ValveSoftware/steam-for-linux/issues/781#issuecomment-2004757379
+    GTK_IM_MODULE='xim'
   '' + lib.toShellVars extraEnv;
 
 in buildFHSEnv rec {