Ubuntu16制作程序图标并添加到启动栏和dash

https://sourceforge.net/p/freemind/discussion/22102/thread/33f5ff09/

一. 安装程序并进入bin文件夹,以脚本./softwarename运行程序

Now, make it convenient (the easy way):
Create a desktop launch for unity.
While Freemind is still running:

二. 在程序运行时,右键--lock到启动栏

Right-click on the Freemind icon in the unity launcher > Lock to Launcher.

三. 进入~/.local/share/applications,创建softwarename.desktop文件

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Understand
Icon=/home/penn/Software/DevSoftware/Understand/bin/linux64/understand.xpm
Path=/home/penn/Software/DevSoftware/Understand/bin/linux64
Exec=/home/penn/Software/DevSoftware/Understand/bin/linux64/understand
Terminal=false
Type=Application
Categories=Utility;Application;Development; //红色两部分为必须,否则启动栏/dash不会显示

四. 添加desktop文件运行权限

sudo chmod +x sftwname.desktop

posted @ 2017-10-08 17:02  Focusing  阅读(2272)  评论(0编辑  收藏  举报