We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6210bf2 commit 8ba6b85Copy full SHA for 8ba6b85
wechat.sh
@@ -42,12 +42,23 @@ try_exit_wechat() {
42
fi
43
}
44
45
+setup_ime_env() {
46
+ if [[ "$XMODIFIERS" =~ fcitx ]]; then
47
+ [ -z "$QT_IM_MODULE" ] && export QT_IM_MODULE=fcitx
48
+ [ -z "$GTK_IM_MODULE" ] && export GTK_IM_MODULE=fcitx
49
+ elif [[ "$XMODIFIERS" =~ ibus ]]; then
50
+ [ -z "$QT_IM_MODULE" ] && export QT_IM_MODULE=ibus
51
+ [ -z "$GTK_IM_MODULE" ] && export GTK_IM_MODULE=ibus
52
+ fi
53
+}
54
+
55
if [ "$1" == "--exit-wechat" ]; then
56
try_exit_wechat
57
exit
58
59
60
try_open_wechat_window
61
+setup_ime_env
62
63
exec proot -b /app/wechat/libuosdevicea.so:/usr/lib/license/libuosdevicea.so \
64
-b /app/license/etc/os-release:/etc/os-release \
0 commit comments