Search code examples
linuxubuntuintellij-idea

Can not start IntelliJ IDEA by Clicking ICON from Launch bar on ubuntu 13.10


I have version of ubuntu 13.10 running on my PC, I have recently shifted from windows to linux ubuntu, I have installed intellJ IDEA with full configuration set, and I have been using it for two weeks now.

The problem I am facing from day 1 is that I have IntelliJ IDEA Icon in the launch bar, but clicking on the icon does not opens/runs it.

I have to write the following command in the terminal to run intelliJ IDEA.

muhammad@raees-pc:~$ cd /home/muhammad/IDEA/idea-IU-133.696/bin
muhammad@raees-pc:~/IDEA/idea-IU-133.696/bin$ ./idea.sh

Although it is working fine, but why not it opens on click by mouse, I any one had same problem found solution please share with me,


Solution

  • Create file intilliJ.desktop, input the content as fellows:

    [Desktop Entry]
    Name=IntelliJ IDEA
    Comment=IntelliJ IDEA IDE
    Exec=/home/nufail/apps/idea-IC-107.587/bin/idea.sh
    Icon=/home/nufail/apps/idea-IC-107.587/bin/idea_CE128.png
    Terminal=false
    StartupNotify=true
    Type=Application
    Categories=Development;IDE;
    

    Then move the file to ~/.local/share/applications. If you want all users can use this application, you can add this file to /usr/share/applications/.