tonglin0325的个人主页

给ubuntu的docky添加可以直接打开的图标

在/usr/share/applications和/usr/share/app-install/desktop寻找需要的图标,没有就自己做一个

eclipse的图标

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[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 **

1
2
3
4
5
6
7
8
[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添加的图标的目录在

1
2
~/.local/share/applications