在目錄/usr/share/application文件夾下添加eclipse.desktop文件
文件內容:
[Desktop Entry]
Name[zh_CN]=eclipse
Exec=/home/corey/tools/eclipse/eclipse
Icon=/home/corey/tools/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;Development;X-Red-Hat-Extra;
Encoding=UTF-8
X-Desktop-File-Install-Version=0.3
摘自 corey523的博客