准备工作
下载CAJViewer for Linux
选中图标右键保存,获得logo_caj.png
新建/opt/CAJViewer/文件夹,并将二者复制到文件夹内
# 新建文件夹
sudo mkdir /opt/CAJViewer
# 复制文件
cd Downloads/
sudo cp CAJViewer-x86_64-buildubuntu1604-210401.AppImage /opt/CAJViewer/
# 复制logo
cd ~/Pictures
sudo cp logo_caj.png /opt/CAJViewer/
设置文件可执行
选中->右键->属性->权限
允许作为程序执行文件
创建软件图标
cd /usr/share/applications
sudo gedit CAJViewer.desktop
复制下面信息到编辑器,保存便可以看到软件图标
[Desktop Entry]
Name=CAJViewer
Exec=/opt/CAJViewer/CAJViewer-x86_64-buildubuntu1604-210401.AppImage %U
Terminal=false
Type=Application
Icon=/opt/CAJViewer/logo_caj.png
StartupWMClass=baidunetdisk
Comment=CAJ阅读器
MimeType=application/octet-stream;
Categories=Application;