huan / docker-wechat

DoChat is a Dockerized WeChat (盒装微信) PC Windows Client for Linux
https://hub.docker.com/r/zixia/wechat
Apache License 2.0
2.23k stars 199 forks source link

Input Method PinYin cannot use #161

Open wojiaoliwua opened 2 years ago

wojiaoliwua commented 2 years ago

I find chinese input method,sougou pinyin cannot use, we can only use english input method

2XL commented 2 years ago

same here from linux mint 19.3, from the index.md input it should be supported, maybe its our docker being outdated, or the input setup: IBus or fcitx...

REF: https://github.com/huan/docker-wechat/blob/main/README.md?plain=1#L232

@wojiaoliwua

  1. download the script: https://github.com/huan/docker-wechat/blob/main/dochat.sh#L107-L109

  2. set the environment variables according to your input setup, my case it's fcitx..

    -e XMODIFIERS=@im=fcitx \ -e GTK_IM_MODULE=fcitx \ -e QT_IM_MODULE=fcitx \

  3. rename the script as wechat move the script to your path...

run wechat

...this solved the 中文 input problem on my side.

leodream commented 2 years ago

I am using fcitx5 and found that I need to replace "fcitx" with "fcitx5" in all those environment variables.

khewweifeng commented 1 year ago

I use ibus pinyin , no problem for docker wechat

Thesoul20 commented 1 year ago

I am using fcitx5 and found that I need to replace "fcitx" with "fcitx5" in all those environment variables.

I also using fcitx5 and added the config in the dochat.sh file as follows:

   docker run \
   ...
    \
    -e XMODIFIERS=@im=fcitx5 \
    -e GTK_IM_MODULE=fcitx5 \
    -e QT_IM_MODULE=fcitx5 \
    \
   ...

but when I run the dochat.sh file to open the WeChat app, I still cannot use the chinese input method of fcitx5. By the way, in firefox browser I can normally input the chinese by fcitx5.

Thesoul20 commented 1 year ago

I am using fcitx5 and found that I need to replace "fcitx" with "fcitx5" in all those environment variables.

I also using fcitx5 and added the config in the dochat.sh file as follows:

   docker run \
   ...
    \
    -e XMODIFIERS=@im=fcitx5 \
    -e GTK_IM_MODULE=fcitx5 \
    -e QT_IM_MODULE=fcitx5 \
    \
   ...

but when I run the dochat.sh file to open the WeChat app, I still cannot use the chinese input method of fcitx5. By the way, in firefox browser I can normally input the chinese by fcitx5.

however, when replace the fcitx5 to fcitx in the dochat.sh file, and then reload the dochat app, then Chinese input method will be used normally.

   docker run \
   ...
    \
    -e XMODIFIERS=@im=fcitx \
    -e GTK_IM_MODULE=fcitx \
    -e QT_IM_MODULE=fcitx \
    \
   ...