wechat-uos: fix IM issue

This commit is contained in:
Bu Kun 2024-04-11 15:45:30 +08:00
parent 646f0dcd01
commit fe32a89651
No known key found for this signature in database
1 changed files with 10 additions and 0 deletions

View File

@ -229,6 +229,16 @@ buildFHSEnv {
runScript = writeShellScript "wechat-uos-launcher" ''
export QT_QPA_PLATFORM=xcb
export LD_LIBRARY_PATH=${lib.makeLibraryPath wechat-uos-runtime}
if [[ ''${XMODIFIERS} =~ fcitx ]]; then
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx
elif [[ ''${XMODIFIERS} =~ ibus ]]; then
export QT_IM_MODULE=ibus
export GTK_IM_MODULE=ibus
export IBUS_USE_PORTAL=1
fi
${wechat.outPath}/opt/apps/com.tencent.wechat/files/wechat
'';
extraInstallCommands = ''