Create IntelliJ idea icon shortcut under Ubuntu 17.04

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.