1. /usr/share/applications目錄下建立*.desktopweb
cd /usr/share/applications
vim
touch *.desktop
app
2.編輯 *.desktop文件,內容以下(gedit/vim):eclipse
[Desktop Entry]spa
Type=Applicationorm
Name=Eclipse --應用程序名
ip
Comment=Eclipse --程序簡介
ci
Icon=/home/lai/Software/eclipse/icon.xpm --圖標地址
it
Exec=/home/lai/Software/eclipse/eclipse --應用程序地址
io
Terminal=false
Categories=Development;IDE;Java;