Deepin V20使用wine安装微信
升级微信后,再打开频繁崩溃,因此利用wine重新安装。
1.安装微信
env WINEPREFIX=~/Deepin-Wechat5 deepin-wine5 WeChatSetup.exe
2.配置riched20(如果不配置,输入框有问题)
env WINEPREFIX=~/Deepin-Wechat5 deepin-wine5 winecfg
3.选择函数库,添加riched20,编辑为原装先于内建
4.copy老版deepin-wine wechat目录里的
cp ~/.deepinwine/Deepin-WeChat/drive_c/windows/system32/riched20.dll ~/Deepin-Wechat5/drive_c/windows/system32/
5.配置一个desktop文件(新建run.sh在~/Deepin-Wechat5下并且给以执行权限)
touch ~/Deepin-Wechat5/run.sh
chmod +x ~/Deepin-Wechat5/run.sh
在run.sh里输入如下,这里路径的是我写的是绝对路径,建议绝对路径,到该目录下pwd一下即可:
#!/bin/bash
env WINEPREFIX=/home/chillifish/Deepin-Wechat5 deepin-wine5 '/home/chillifish/Deepin-Wechat5/drive_c/Program Files/Tencent/WeChat/WeChat.exe'
------------------------------------------------------------------------------
在下建立desktop文件:
sudo touch /usr/share/applications/wechat-new.desktop
sudo dedit /usr/share/applications/wechat-new.desktop
在文本中输入以下内容,路径也替换掉:
#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Type=Application
X-Created-By=Deepin WINE Team
Categories=chat;
Icon=com.qq.weixin.deepin
Exec=/home/chillifish/Deepin-Wechat5/run.sh
Name=WeChat
Name[zh_CN]=微信
Comment=Tencent WeChat Client on Deepin Wine
StartupWMClass=WeChat.exe
MimeType=
X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher
X-Deepin-AppID=com.qq.weixin.deepin
THE END
0
二维码
打赏
海报
Deepin V20使用wine安装微信
升级微信后,再打开频繁崩溃,因此利用wine重新安装。
1.安装微信
env WINEPREFIX=~/Deepin-Wechat5 deepin-wine5 WeChatSetup.exe
2.配置riched20(……