Ubuntu中的快捷方式

1、在/usr/share/applications目录中创建以“应用程序名称.desktop”为名称的文件:

vi /usr/share/applications/xx.desktop

2、输入如下内容:

[Desktop Entry]
Type=Application
Name=名字
Comment=描述
Icon=/应用程序所在文件夹/icon.xpm
Exec=/应用程序所在文件夹/应用程序
Terminal=false
Categories=Development;

其中主要的是Icon和Exe的配置。

下面是eclipse.desktop的内容:

[Desktop Entry]
Type=Application
Name=eclipse
Comment=Java EE IDE
Icon=/home/leleliu008/bin/eclipse/icon.xpm
Exec=/home/leleliu008/bin/eclipse/eclipse
Terminal=false
Categories=Development;

这样,就可以在Dash中搜索到了,如下:

点击图标即可启动Eclipse了。你可以把他PickDocky上。