debian9.6安装微信并添加图标
原创
©著作权归作者所有:来自51CTO博客作者wx631a9cd48516d的原创作品,请联系作者获取转载授权,否则将追究法律责任
1,下载
https://github.com/geeeeeeeeek/electronic-wechat/releases,下载自己系统的,我的是64位系统,所以下载 linux-x64.tar.gz。
查看自己系统多少位:
guoyanzhang@bogon:~/wechat$ uname -a
Linux bogon 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
或者:
guoyanzhang@bogon:~/wechat$ getconf LONG_BIT
64
2,解压
guoyanzhang@bogon:~/wechat$ tar -zxvf linux-x64.tar.gz
解压目录下有个electronic-wechat的可执行文件,点击运行就可以了,不过没有桌面图标。
3,添加桌面图标
以下信息保存退出,就在搜索栏里有一个图标了。
guoyanzhang@bogon:~/wechat$ sudo cat /usr/share/applications/wechat.desktop
[sudo] guoyanzhang 的密码:
[Desktop Entry]
Name = wechat
Encoding = UTF-8
Comment = wechat Link
Exec= /home/guoyanzhang/wechat/electronic-wechat-linux-x64/electronic-wechat
Icon= /home/guoyanzhang/wechat/wym.jpg
StartupNotify = true
Type = Application
[desktop entry]是文件头;name,就是这个图标的名字;econding就是编码方式;comment这个不清楚,有人说是鼠标经过图标时的提示,我试了一下,不对;exec就是刚刚那个执行文件;icon就是图标,自己去找一个;startupnotify这个是启动提示吧;type有两种,一种application,一种link。
4,添加到收藏夹
去搜索栏右击图标,添加到收藏夹就可以了。