一些应用程序(例如很多.sh程序)如果想在Ubuntu中添加到Dash home中进行快速的启动,则需要找到/usr/share/applications这个目录,其中存放的全部是dash中的启动器,将你需要的程序(如idea)添加其中即可。

  具体操作步骤:

 

  1.命令行操作内容:

    1) cd /usr/share/applications

    2) sudo gedit idea.desktop

  2.在desktop文件中添加编辑内容:

  [Desktop Entry]
   Encoding=UTF-8
   Version=1.0
   Name=IntelliJ IDEA
   GenericName=Java IDE
   Comment=IntelliJ IDEA is a code-centric IDE focused on developer productivity. The editor deeply understands your code and knows its way around the codebase, makes great suggestions right when you need them, and is always ready to help you shape your code.
   Exec=/usr/local/lib/idea/bin/idea.sh
   Icon=/usr/local/lib/idea/bin/idea.png
   Terminal=false
   Type=Application
   Categories=Development;IDE

 

  注:请将Exec和Icon的路径换成自己的idea安装路径。