Unity launcher for Intellij duplicate after application loading
Solution 1
You can get Intellij to generate the icon in /usr/share/applications for you to copy to your launcher:
- Open a terminal, in idea/bin folder
- Start IntelliJ with
./idea.sh
- Tools -> Generate Desktop Entry
- Close IntelliJ
- In the terminal, start nautilus as admin (
gksudo nautilus
) - Go to /usr/share/applications
- Drag the new icon for IntelliJ to your launcher
Solution 2
Solved this by adding 'StartupWMClass=jetbrains-idea' to the desktop file. Got help from here.
BTW colleague provide a easier way of creating a unity launcher for Intellij.
- Go to tools -> Generate Desktop Entry from Intellj IDEA ( it crates the desktop file for you)
- Search in from dash, run and lock it to the launcher.
Related videos on Youtube
user221315
Tech Lover. Has worked as a back end developer, front end developer and a full stack developer.
Updated on September 18, 2022Comments
-
user221315 over 1 year
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.
-
Admin almost 10 yearsIsnt it
usr/bin/intlellij
forExec=
? -
user221315 almost 10 yearsNope I extract it to my home directory. It doesn't matter r8?
-
Jacob Vlijm almost 10 yearsMost likely the same cause as this one askubuntu.com/a/465308/72216 (third cause). To make a nice configuration, I would create a directory ~/bin, create a link to the application:
ln -sf /home/sravinda/idea-IU-135.690/bin/idea /home/sravinda/bin/idea
, make the application fileidea.sh
executable, and simply run it by the commandidea
in theExec=
line. Then add the line at the end of the file's content:StartupWMClass=idea
. You may have to log out /in.
-