Ubuntu下創建Eclipse快捷方式

sudo gedit /usr/share/applications/eclipse.desktop

然後在彈出的文件中輸入:

ps: 我的Eclipse是安裝(或解壓)在 /usr/src/eclipse目錄下的

代碼:

[Desktop Entry]

Name=Eclipse Platform

Comment=Eclipse IDE

Exec=/usr/src/eclipse/eclipse

Icon=/usr/src/eclipse/icon.xpm

Terminal=false

StartupNotify=true

Type=Application

Categories=Development;


另外介紹兩個命令,和desktop圖標有關的

desktop-file-install 安裝圖標圖標到Application目錄

desktop-file-validate 驗證你的桌面圖標文件的正確性

比如我下的命令可以把我桌面上已經安裝好了的eclipse圖標添加到開始菜單裏

desktop-file-install --add-category Development eclipse.desktop


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