deepin-wine-ubuntu
deepin-wine-ubuntu copied to clipboard
微信输入不了中文
按照说明把WINE_CMD
改了,但输入不了中文,输入法废了?
输入法是fcitx吗
https://wiki.archlinux.org/index.php/Fcitx_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#%E8%AE%BE%E7%BD%AE%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F 按照这个设置一下环境变量
我的输入法是ibus 也是输入不了中文,ubuntu20.04开发版
同问 fcitx+sogou-pinyin,环境wechat,
调整wine_cmd="LC_ALL=zh_CN.UTF-8 $wine_cmd" in run_v2.sh
and run.sh
.
Sogou 出现乱码。外部使用正常。
debian 10.3.0, fcitx 以及 fcitx-googlepinyin,非 wine 容器内输入中文正常; wechat version:2.6.8.65,无法输入中文。
现象
- /opt/deepinwine/tools/run.sh、/opt/deepinwine/apps/Deepin-WeChat/run.sh、/usr/share/applications/deepin.com.wechat.desktop 配置环境变量均不行。
env XMODIFIERS="@im=fcitx" GTK_IM_MODULE="fcitx" QT_IM_MODULE="fcitx"
deepin.com.wechat 中文显示正常,英文输入正常,中文没法输入。
-
与微信快捷键不存在按键冲突。
-
fcitx-diagnose
提示 "gtk-query-immodules not found"。
1. gtk 2:
**Cannot find `gtk-query-immodules` for gtk 2**
**Cannot find fcitx im module for gtk 2.**
2. gtk 3:
**Cannot find `gtk-query-immodules` for gtk 3**
**Cannot find fcitx im module for gtk 3.**
根据 https://github.com/fcitx/fcitx/issues/296 建议 ,安装 fcitx-libs-dev
sudo apt install fcitx-libs-dev
问题仍存在,fcitx-diagnose
仍报 gtk-query-immodules not found 问题。
不确定微信不能输入中文是否与此有关?
相关问题
有看到相关 issue,貌似都没解决。
#141 QQ TIM都不能使用中文输入法
ibus中文输入法,wechat同样不能输入中文。看wechat下run.sh调用的是tools下run_v2.sh 参考网上说法加了三个环境变量的exp: export GTK_IM_MODILE="ibus" export QT_IM_MODULE="ibus" export XMODIFIERS="@im=ibus" 测试不成功。
作者辛苦~ 20200602 EDIT 重启之后 居然可以正常使用了
debian 10.3.0, fcitx 以及 fcitx-googlepinyin,非 wine 容器内输入中文正常; wechat version:2.6.8.65,无法输入中文。
现象
- /opt/deepinwine/tools/run.sh、/opt/deepinwine/apps/Deepin-WeChat/run.sh、/usr/share/applications/deepin.com.wechat.desktop 配置环境变量均不行。
env XMODIFIERS="@im=fcitx" GTK_IM_MODULE="fcitx" QT_IM_MODULE="fcitx"
deepin.com.wechat 中文显示正常,英文输入正常,中文没法输入。
- 与微信快捷键不存在按键冲突。
fcitx-diagnose
提示 "gtk-query-immodules not found"。1. gtk 2: **Cannot find `gtk-query-immodules` for gtk 2** **Cannot find fcitx im module for gtk 2.** 2. gtk 3: **Cannot find `gtk-query-immodules` for gtk 3** **Cannot find fcitx im module for gtk 3.**
根据 fcitx/fcitx#296 建议 ,安装 fcitx-libs-dev
sudo apt install fcitx-libs-dev
问题仍存在,
fcitx-diagnose
仍报 gtk-query-immodules not found 问题。不确定微信不能输入中文是否与此有关?
相关问题
有看到相关 issue,貌似都没解决。
#141 QQ TIM都不能使用中文输入法
ubuntu18.04 打开所有中文都是乱码,打出来的消息也是乱码,发出去消息也是乱码,已经按照配置修改了WINE_CMD
没有用。
安装 fcitx-libs-dev 解决了问题
输入中文的问题, 我通过配置 locale 解决了.
@sophia-eb 感谢你的建议,安装了fcitx-libs-dev 之后确实能够输入中文了(百度拼音)!我使用的命令来自这个界面:
https://ubuntu.pkgs.org/20.04/ubuntu-universe-i386/fcitx-libs-dev_4.2.9.7-3_i386.deb.html
输入中文的问题, 我通过配置 locale 解决了.
how ?
参考一下这个 https://blog.csdn.net/qq_18649781/article/details/87476043 可以解决
这个不就是最常用的方法吗?病没有解决啊
并没有解决 ubuntu 20.04.01LTS
并没有解决 ubuntu 20.04.01LTS
同样没有解决。
修改 /opt/deepinwine/tools
下的 run.sh
run_v2.sh
run_v3.sh
run_v4.sh
对应的 WINE_CMD="deepin-wine"
为以下, 保存后重启微信, 可解决 ibus 输入中文的问题, 在 ubuntu 21.10 测试通过:
# WINE_CMD="deepin-wine"
WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"
export GTK_IM_MODULE="ibus"
export QT_IM_MODULE="ibus"
export XMODIFIERS="@im=ibus"
ps: 可以找一下 wechat 调用的是 哪个版本的 run.sh
, 可以在 /opt/apps/com.qq.weixin.deepin/files/run.sh
看 (可能安装版本不一, 路径也不一样), 比如我的是 START_SHELL_PATH="/opt/deepinwine/tools/run_v4.sh"
, 那这个文件一定要改成上面的配置, 再重启才能生效.