- 一、安裝deepin-wine環境:
桌面下打開終端,依次輸入以下命令
git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git //將github中文件夾克隆到本地,若報錯請看注意內容
cd deepin-wine-for-ubuntu //進入存儲后的文件夾目錄
sudo sh install.sh //運行安裝wine的腳本文件
注意:運行第一行代碼時若電腦上未安裝git則無法將文件夾存儲到本地,安裝方法
sudo apt-get update -y //保證系統和包列表更新
sudo apt-get upgrade -y
sudo apt install git //在ubuntu18.04上安裝git
二、下載對應的qq、微信等容器
QQ:
wget https://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.qq.im/deepin.com.qq.im_9.1.8deepin0_i386.deb
sudo dpkg -i deepin.com.qq.im_9.1.8deepin0_i386.deb
sudo apt-get install -f
微信:
sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb
sudo apt-get install -f
更多軟件:安裝方法與微信相同
安裝效果:
注意:默認情況下qq最小化后圖標不會顯示在狀態欄中,安裝優化軟件后即可
三、將圖標最小化到狀態欄
1、安裝拓展
sudo apt-get install gnome-shell-extension-top-icons-plus gnome-tweaks
2、重啟電腦
3、依次打開優化-》拓展-》勾選Topicons plus
完成以上步驟即可在ubuntu18.04上使用qq、微信等軟件。
四、卸載已安裝的程序
sudo apt-get remove deepin.com.
按tab鍵后,根據提示的軟件名稱補全后可直接卸載。
注意:該方法只能卸載軟件,若想卸載wine環境,桌面下進入終端:
cd deepin-wine-for-ubuntu
sudo sh uninstall.sh
五、已知bug及解決方法
1、微信不能發圖片,解決方法:
sudo apt install libjpeg62:i386
2、qq的設置無法打開:無解,歡迎留言
3、微信使用一段時間后屏幕出現黑點
解決方法:感謝 Espylapiza
①先安裝xdotool
$ sudo apt install xdotool
②創建/opt/deepinwine/apps/Deepin-WeChat/runrun.sh //手動創建即可
③$ sudo vim /opt/deepinwine/apps/Deepin-WeChat/runrun.sh //若沒有vim,需要先安裝 sudo apt-get install vim
④將下面腳本的代碼拷進runrun.sh文件內(需要vim基礎,不懂自行百度)
#!/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
注意:若無效,繼續增大sleep的值。
⑤修改desktop文件
$ sudo vim /usr/share/applications/deepin.com.wechat.desktop
找到Exec那一行,替換為
Exec="/opt/deepinwine/apps/Deepin-WeChat/runrun.sh"
⑥在runrun.sh文件的文件夾下打開終端,修改runrun.sh的權限:
sudo chmod 777 runrun.sh
⑦重啟電腦即可解決該問題,親測可用!
4、微信不能發送圖片:
sudo apt insatall libjpeg62:i386
5、建議安裝tim+微信,修復bug后和win完全無區別
感謝: