ubuntu 的菜單配置文件都在 /usr/share/app-install/desktop 目錄下,每個文件對應(yīng)一
個應(yīng)用程序,應(yīng)此要添加一個新的應(yīng)用程序只需要copy一份文件,然后照著格式把里面相應(yīng)
的參數(shù)改一改就可以了,一個應(yīng)用程序菜單項的配置文件例子如下:
[Desktop Entry]
X-AppInstall-Package=eclipse
X-AppInstall-Popcon=5388
X-AppInstall-Section=universe
Name=Eclipse
Comment=Develop applications in a variety of different programming languages
Exec=/usr/bin/eclipse
Icon=eclipse48.png
Terminal=false
Type=Application
Categories=Development;
StartupNotify=true