linuxmint系統
輸入sudogedit /usr/share/applications/eclipse.desktop
,在打開的文件中輸入以下參數:
1 [Desktop Entry] 2 Encoding=UTF-8 3 Name=Eclipse 4 Comment=Eclipse IDE 5 Exec=/home/hadoop/eclipse/eclipse 6 Icon=/home/hadoop/eclipse/icon.xpm 7 Terminal=false 8 StartupNotify=true 9 Type=Application 10 Categories=Application;Development;
注意:Exec 和 Icon 改為自己eclipse目錄的路徑
保存並退出(如果前面不是以管理員[sudo]登錄的這里不能保存!!!)
再從文件夾進入/usr/share/applications目錄下就可以看到eclipse圖標了:
復制圖標到桌面即可。