Linux Memo: Creating IDEA Shortcuts
1. Enter the shared shortcut directory:
cd /usr/share/applications #dir of desktop shortcut
2. Create the shortcut file:
sudo touch intellij-idea.desktop # creat a shortcut in this dir
3. Edit with root privileges: sudo vim intellij-idea.desktop
[Desktop Entry]
Name=IntelliJ IDEA
Exec=sh /home/zero/soft/idea-IU-171.3780.107/bin/idea.sh
Comment=IntelliJ IDEA
Icon=/home/zero/soft/idea-IU-171.3780.107/bin/idea.png Type=Application Terminal=false Encoding=UTF-8
Change /home/zero/soft/idea-IU-171.3780.107/
to your own installation directory
4. Add execute permission to the shortcut:
sudo chmod +x /usr/share/applications/intellij-idea.desktop
5. Copy the created shortcut to the desktop:
cp intellij-idea.desktop /home/zero/Desktop/