当前位置首页 > Ubuntu知识

ubuntu创建idea桌面快捷方式

阅读次数:202 次  来源:admin  发布时间:

This method can be used to create a launcher for any application, not just IntelliJ IDEA. For any launcher in Unity what you need to create is a .desktop file.

First create a file named idea.desktop in your home folder. Then open it with a text editor and add the following to it.

[Desktop Entry]

Name=IntelliJ IDEA

Comment=IntelliJ IDEA IDE

Exec=/home/nufail/apps/idea-IC-107.587/bin/idea.sh

Icon=/home/nufail/apps/idea-IC-107.587/bin/idea_CE128.png

Terminal=false

StartupNotify=true

Type=Applicatio

Categories=Development;IDE

autilus-actions.org gives a good explanation about .desktop files and what all these entries mean and other entries available for .desktop files.

Now you can keep this file in the Desktop to use it as a desktop launcher or you can add it to ~/.local/share/applications to access it through the Dash for only the current user. If you need to access it through the dash for all users, then add it to /usr/share/applications.

上一篇:如何下载Ubuntu命令对应的源码
下一篇:Ubuntu10.10下挂载的window盘符无法获得可执行权限的问题