Ubuntu – Unity launcher for Intellij duplicate after application loading

intellijlauncherunity

I create a launcher for Ingtellij Idea by writing a custom .desktop file.

[Desktop Entry]
Version=13.3
Name=Intellij Idea
Comment=
Type=Application
Categories=Developoment,IDE
Exec=/home/sravinda/idea-IU-135.690/bin/idea.sh
Terminal=false
StartupNotify=true
Icon=/home/sravinda/idea-IU-133.331/bin/idea.png
Name[en_US]=Intellij Idea

I put it to ~/.local/share/applications. I get and launcher and I added that to the unity side bar.
When I launch the application another icon appear in the side bar. Which is different from other applications. There same icon represent the launched application with small bracket on left of the icon. Any one have idea why is that.

Best Answer

You can get Intellij to generate the icon in /usr/share/applications for you to copy to your launcher:

  1. Open a terminal, in idea/bin folder
  2. Start IntelliJ with ./idea.sh
  3. Tools -> Generate Desktop Entry enter image description here
  4. Close IntelliJ
  5. In the terminal, start nautilus as admin (gksudo nautilus)
  6. Go to /usr/share/applications
  7. Drag the new icon for IntelliJ to your launcher