給ubuntu的docky添加可以直接打開的圖標


在/usr/share/applications和/usr/share/app-install/desktop尋找需要的圖標,沒有就自己做一個

eclipse的圖標

[Desktop Entry]

Version=1.0

Name=eclipse

Exec=/home/common/software/eclipse/eclipse

Terminal=false

Icon=/home/common/software/eclipse/eclipse.png

Type=Application

Categories=Development

 sublimetext的圖標

為了使得sublime能修改root的文件,安裝gksu,然后在Exec前面加上gksu

[Desktop Entry]
Name=SublimeText2
Type=Application
Terminal=false
Comment=Edit text files
Exec=/home/common/software/SublimeText2/sublime_text %F
Icon=/home/common/software/SublimeText2/sublime_text.png

 注意末尾不要有空格

 docky添加的圖標的目錄在

~/.local/share/applications

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM