添加deeepin-wine 依賴
/etc/apt/sources.list:
# Generated by deepin-installer
deb http://mirrors.aliyun.com/deepin panda main contrib non-free
deb-src http://mirrors.aliyun.com/deepin panda main contrib non-free
更新
apt update
簽名驗證錯誤
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 425956BB3E31DF
安裝deepin-wine
apt install deepin-wine --fix-missing
安裝 wine qq
下載:https://www.lulinux.com/archives/1319
dpkg -i deepin.com.qq.im.light_7.9.14308deepin8_i386.deb
如果報錯,安裝依賴:
apt install -f
安裝中文字體:
apt-get install xfonts-intl-chinese
apt-get install ttf-wqy-microhei
其他問題:
- 最小化之后找不到
- 字體發虛
微信黑塊
參考:Espylapiza https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/72
這里ubuntu18.10,我暫時寫了一個腳本
先安裝xdotool
$ sudo apt install xdotool
創建/opt/deepinwine/apps/Deepin-WeChat/runrun.sh
$ sudo vim /opt/deepinwine/apps/Deepin-WeChat/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 vim /usr/share/applications/deepin.com.wechat.desktop
找到Exec那一行,替換為
Exec="/opt/deepinwine/apps/Deepin-WeChat/runrun.sh"
sleep的值是在自己電腦上調的,如果失敗,嘗試增大sleep的值
第二天開機發現還是有黑塊,解決方法:
修改 runrun.sh:
#!/bin/bash
cd /opt/deepinwine/apps/Deepin-WeChat/
./run_main.sh
run_main.sh 的內容是之前runrun.sh 的內容
安裝 TopIcons Redux 效果如下:
簡化的安裝流程
參考:https://bbs.deepin.org/forum.php?mod=viewthread&action=printable&tid=183464
- /etc/apt/source.list 添加deepin 的源
deb [trusted=yes] https://mirrors.huaweicloud.com/deepin stable main contrib non-free
sudo apt update
sudo apt install deepin.com.wechat -y
sudo apt install deepin.com.qq -y
如果不希望安裝其他默認的應用,不要 -y