ubuntu系统添加idea快捷到菜单
参考链接:来源
下载解压idea的压缩包后,我们可以通过bin目录下的idea.sh脚本来启动idea,不是很方便。
如何将其添加到菜单?
进入命令行,调整为root用户。进入/usr/share/applications/
目录下。使用sudo gedit idea.desktop
命令添加一个快捷方式,填入以下信息,Exec和Icon的地方要注意填写成自己解压目录下的信息
[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=/home/akio/tools/idea-IU-201.8743.12/bin/idea.sh
Icon=/home/akio/tools/idea-IU-201.8743.12/bin/idea.png
Terminal=false
Type=Application
Categories=Development;IDE
不过现在的ubuntu系统好像idea运行了一次/右击收藏就会直接到菜单栏