[TOC]
# 创建桌面快捷方式
~~~
[Desktop Entry]
Version=1.0
Name=intellij-13
Exec=/home/taolei/sda5/linux/Intellij-13/bin/idea.sh
Terminal=false
Icon=/home/taolei/sda5/linux/Intellij-13/bin/idea.png
Type=Application
Categories=Development
Name=快捷方式显示名称
Exec=sh等等类型的程序执行路径
Terminal=false
Icon=图标/片文件路径
Type=Application
Categories=Development
~~~
要为特定程序或命令创建桌面快捷方式,你可以使用任意文本编辑器创建一个`.desktop`文件,然后把它放到`/usr/share/applications`或者`~/.local/share/applications`处。一个典型的.desktop文件如下图所示。
~~~
[Desktop Entry]
Encoding=UTF-8
Version=1.0 #version of an app.
Name[en_US]=yEd #name of an app.
GenericName=GUI Port Scanner #longer name of an app.
Exec=java -jar /opt/yed-3.11.1/yed.jar #command used to launch an app.
Terminal=false #whether an app requires to be run in a terminal
Icon[en_US]=/opt/yed-3.11.1/icons/yicon32.png #location of icon file.
Type=Application #type
Categories=Application;Network;Security; #categories in which this app should be listed.
Comment[en_US]=yEd Graph Editor #comment which appears as a tooltip.
~~~
除了手动创建`.desktop`文件之外,依据你的系统所采用的桌面环境的不同有不同的创建应用快捷方式的方法,接下来的教程我将为你讲解。