wechat-uos: fix IM issue
This commit is contained in:
parent
646f0dcd01
commit
fe32a89651
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in New Issue