zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Ubuntu18.04安装微信(可用)(五十五)

安装微信 可用 ubuntu18.04
2023-09-14 09:09:58 时间

Ubuntu18.04安装微信 

1.安装依赖工具及环境
# sudo apt install wmctrl xdotool
# git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git
# cd deepin-wine-for-ubuntu/
# sudo ./install.sh

2.安装微信
https://download.csdn.net/download/u010164190/16039439
# sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386-OK.deb

搜索启动微信

3.去掉黑框
# git clone https://github.com/yundantianchang/wmctrl.git
# cd wmctrl
# cp wmctrl.py tools/
# cd tools/
# python3 wechat-fix.py //去掉黑框


# emacs /opt/deepinwine/apps/Deepin-WeChat/run.sh //末尾增加
python3 /opt/wmctrl/tools/wechat-fix.py

4.卸载不需要的插件
# sudo apt purge fcitx-ui-qimpanel  fcitx-module-autoeng-ng fcitx-module-punc-ng 

//终极解决方式
# sudo apt purge fcitx*
# sudo dpkg -i sogoupinyin_2.4.0.3469_amd64.deb
# sudo apt -f install
# sudo apt install fcitx-config-gtk

5..搜狗输入法无法输入中文问题
//修改及添加如下
# emacs /opt/deepinwine/tools/run.sh 
WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"
export GTK_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx"
export XMODIFIERS="@im=fcitx"

注意:安装搜狗输入法版本:sogoupinyin_2.4.0.3469_amd64.deb

特别注意,避免掉坑!
必须使用搜狗输入法,Ubuntu18.04自带输入法无法输入中文!