Linux 原生运行微信客户端
2018-10-30 本文已影响14人
黄一倚
Linux得以原生运行微信,还得感谢这位老哥,因为这个微信是他基于Electron开发的,而且在gitHub上开源了,我最欣赏这样的人啦,下载地址在这 https://github.com/geeeeeeeeek/electronic-wechat
安装
- 其实安装的方式有很多种,我这里选择的是安装包的方式

- 然后直接解压就可以了
huanyu@ubuntu:~/Downloads$ tar -zxvf linux-x64.tar.gz -C /home/huanyu/applications

- 在运行的时候出现了点小插曲,少了个运行库,不过问题不大
- 问题如下

- 解决方法:把缺的库装上
huanyu@ubuntu:~/applications/electronic-wechat-linux-x64$ sudo apt install libgconf-2-4
- 再次运行就可以了
huanyu@ubuntu:~/applications/electronic-wechat-linux-x64$ ./electronic-wechat

创建桌面快捷启动方式
[Desktop Entry]
Name=WeChat
Comment=WeChat
Exec=/home/huanyu/applications/electronic-wechat-linux-x64/electronic-wechat //运行路径
Icon=/home/huanyu/applications/electronic-wechat-linux-x64/wechat.png //图标
Terminal=false
Type=Application
Categories=Development;
StartupNotify=true
NoDisplay=true
给图标运行权限
huanyu@ubuntu:~/Desktop$ chmod +x wechat.desktop

可以看到已经可以正常启动了,而且意外发现还可以多开。
给配上一个桌面图标吧
