UBuntu安装微信存在的问题及解决方法
问题1:微信出现黑色框
解决方法
先安装xdotool,创建runrun.sh文件,把下面文件内容编辑到runrun.sh,设置权限
$ sudo apt install xdotool
$ sudo gedit /opt/deepinwine/apps/Deepin-WeChat/runrun.sh
$ sudo chmod +x /opt/deepinwine/apps/Deepin-WeChat/runrun.sh
把下面的内容复制到runrun.sh
#!/bin/bash
"/opt/deepinwine/apps/Deepin-WeChat/run.sh">/dev/null 2>&1
start_succ=false
for i in {1..5}
do
xdotool search --onlyvisible --classname "wechat.exe"
if [ $? == 0 ]
then
start_succ=true
break
fi
sleep 1
done
if [ $start_succ == false ]
then
exit 1
fi
windowclose=false
while :
do
retval=$(xdotool search --onlyvisible --classname "wechat.exe")
if [ $? != 0 ]
then
exit 0
fi
login=true
for id in $retval
do
windowname=$(xdotool getwindowname $id)
if [ "$windowname" == "Log In" ]
then
login=false
fi
if [ $windowclose == true ] && ([ "$windowname" == "" ] || [ "$windowname" == "ChatContactMenu" ])
then
xdotool windowclose $id
fi
done
if [ $windowclose == true ]
then
exit 0
fi
if [ $login == true ]
then
windowclose=true
fi
sleep 0.5
done
最后修改desktop文件
$ sudo gedit /usr/share/applications/deepin.com.wechat.desktop
找到Exec那一行,替换为
Exec="/opt/deepinwine/apps/Deepin-WeChat/runrun.sh"
https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/72#issuecomment
问题2:微信图片无法发送
# 安装这个库即可解决
$ sudo apt install libjpeg62:i386