Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu20.04 安装微信无法调用ibus使用中文 #368

Open
hitbuyi opened this issue Dec 29, 2023 · 2 comments
Open

Ubuntu20.04 安装微信无法调用ibus使用中文 #368

hitbuyi opened this issue Dec 29, 2023 · 2 comments

Comments

@hitbuyi
Copy link

hitbuyi commented Dec 29, 2023

系统环境如下
OS: Ubuntu 20.04.6 LTS x86_64
Kernel: 5.15.0-91-generic
Shell: bash 5.0.17
Resolution: 1920x1080
DE: GNOME
Terminal: gnome-terminal
GPU: nvidia 3060

语言设置成ibus,除了基于wine的程序外,其它所有程序如网页,终端,记事本,vim都能正常输入中文,deepin-wine版微信不能使用中文输入,但如果把中文复制到微信对话框里,能正常显示。试了很多种方法,如
1,修改/tools下的run.sh,run_2.sh,run_3.sh,run_4.sh,增加
   WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"
   export GTK_IM_MODULE="ibus"
   export QT_IM_MODULE="ibus"
   export XMODIFIERS="@im=ibus"
  不起作用
2,尝试分别在~/.bashrc,~/profile, /etc/bash.bashrc, /etc/profile 增加环境变量
    export GTK_IM_MODULE="ibus"
   export QT_IM_MODULE="ibus"
   export XMODIFIERS="@im=ibus"
  不起作用
3,修改字体,安装微软雅黑字体,也不起作用
4,按照#337,删除干净重装,也不起作用
6,尝试各种修改ubuntu语言配置,选中文,纯英文,都试过,不起作用
7,还尝试用了fcitx,装搜狗输入法,也不起作用
8,装了这里提供的bandzip,最先弹出的对话框里也不能输入中文,如果选择文件切换到ubuntu路径如/home/user,则可以输入中文
似乎和对话框有关系,和QT版本有关系吗?我的QT库libqt5.12.x

不知道不能输入中文的核心原因在哪里

@hitbuyi
Copy link
Author

hitbuyi commented Jan 4, 2024

对于deepin-wine,装了最新版的,中文输入正常了,但是又有了一个新问题,发的视频打不开,变成一张图片,拖到vlc中才能播放。
又试了官方版本wine8.0,可用,但装完比较大,没有作者的小。

@YerongLi
Copy link

YerongLi commented Feb 10, 2024

我在/opt/apps/com.qq.weixin.deepin/files/run.sh里面加下面这几个行解决了ibus输入问题。

export GTK_IM_MODULE="ibus"
export QT_IM_MODULE="ibus" 
export XMODIFIERS="@im=ibus"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants