1、sudo gedit /usr/share/applications/idea.desktop
2、添加如下内容
[Desktop Entry]
Name=Idea Community Edition
GenericName=Idea
Comment=Launch Idea Community Edition
Keywords=ide,programming,java
Exec=/home/huang/Downloads/idea-IC-171.4424.56/bin/idea.sh
Terminal=false
Icon=/home/huang/Downloads/idea-IC-171.4424.56/bin/idea.png
Type=Application
StartupNotify=true
3、到/usr/share/applications 目录下,将idea.desktop拖到launcher bar即可