Files are typically created under the installation directory or on the desktop, and are named:idea.desktop
Use to vim
edit the file
$ vim Idea.desktop
Paste in the following:
[Desktop Entry] Name=intellij Ideaexec=/home/xring/tools/idea-iu-141.1532.4/bin/idea.shcomment=intellij IDEAIcon=/home/xring/ Tools/idea-iu-141.1532.4/bin/idea.pngtype=applicationterminal=falseencoding=utf-8
Be careful to /home/xring/Tools/idea-IU-141.1532.4/
replace this path with your own case.
Where Exec is usually used to open the terminal IntelliJ Idea Command, icon is a file.
The last step grants permissions:
chmod +x Idea.desktop
Here are the issues I encountered when I was working:
Execute $ vim idea.desktop this command appears dpkg is interrupted, you must manually run sudo dpkg–configure-a to resolve this issue
Run the following command to resolve
sudo rm/var/lib/dpkg/updates/*sudo apt-get updatesudo apt-get Upgrade
The main reason should be the/var/lib/dpkg/updates folder inside the data error, so that the software update program errors, so you have to remove them completely, through the sudo apt-get update this command will re-establish the data, using sudo Apt-get Upgrade Update the details of the installed software on your PC to the latest version according to the software's detailed update software.
After this error was resolved, I encountered the following problem ...
Vim: dependent: vim-common (= 2:7.3.429-2UBUNTU2) But 2:7.3.429-2ubuntu2.1 is going to be installed
Find a solution after searching the Internet
sudo apt-get purge vim-commonsudo apt-get updatesudo apt-get upgradesudo apt-get Install vim
Create IntelliJ idea icon shortcut under Ubuntu 17.04