在路径/usr/share/applications下有许多的桌面应用,要生成桌面应用实现对应的.destop文件即可,
如下qt的桌面
1 [Desktop Entry]
2 Type=Application
3 Exec=/opt/Qt5.7.1/Tools/QtCreator/bin/qtcreator/ #可执行程序路径或启动脚本
4 Name=Qt Creator (Community) //显示文字
5 GenericName=The IDE of choice for Qt development.
6 Icon=QtProject-qtcreator #桌面图标
7 Terminal=false
8 Categories=Development;IDE;Qt;
9 MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.qt.qmakeprofile;application/vnd.qt.xml.resource;text/x-qml;text/x-qt.qml;text/x-qt.qbs;
: