Linux 添加程序图标到开始菜单中

Linux平台的Ubuntu系统中,开始菜单中的程序都在/usr/share/applications/目录下,文件格式都是xxxx.desktop

================================================================

[Desktop Entry]
Type=Application
Name=SetPro
Comment=SetPro
Exec=/usr/lib/SetPro
Icon=/usr/lib/LOGO.png
StartupNotify=true
Terminal=false
Type=Application
Categories=PackageManager;GTK;System;Settings;Viewer;
Name[zh_CN]= 设置
Comment[zh_CN]=设置

==============================================================

按如上代码,创建一个SetPro.desktop的文件复制到/usr/share/applications/目录下,在开始菜单中即可看到程序图标了

原文地址:https://www.cnblogs.com/nightnine/p/8036512.html