Ubuntu12.04創建eclipse圖標

在ubuntu12.04系統下成功使用解壓後的eclipse,但是沒有啓動圖標  需要手動添加

參考網絡上的資料都說要在/usr/share/applications目錄下創建eclipse.desktop文件

cd /usr/share/applications

touch eclipse.desktop

網絡上衆說紛紜,參考了一篇帖子發現壓根就沒作用  內容如下

[Desktop Entry]

Type=Application
Name=eclipse
Comment=Eclipse
Icon=/home/tj/adt-bundle-linux-x86-20130514/eclipse/icon.xpm(這個自己修改)
Exec=/home/tj/adt-bundle-linux-x86-20130514/eclipse/eclipse
Terminal=false
Categories=Development;IDE;Java;


後來參考另外一篇文章  測試OK  內容如下

[Desktop Entry]
Name=eclipse
Name[zh_CN]=eclipse
Comment=eclipse Client
Exec=/home/tj/adt-bundle-linux-x86-20130514/eclipse/eclipse
Icon=/home/tj/adt-bundle-linux-x86-20130514/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;Development;
Encoding=UTF-8
StartupNotify=true


其他的應用程序讀可以按照類似添加


然後在Dash主頁上搜索eclipse   就可以找到並添加到側邊欄上


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章