|// create file:|
|sudo vim /usr/share/applications/intellij.desktop|
|// add the following|
|// mod permissions|
|sudo chmod 644 /usr/share/applications/intellij.desktop|
|sudo chown root:root /usr/share/applications/intellij.desktop|
if you're using desktop icon, you will need to pass that in the file as enviroment var. e.g.
or if you're calling idea.sh directly, you need to make sure your env vars are correctly set.
You can also use Intellij IDEA itself to create the Ubuntu launcher icon, as answered elsewhere:
To expand on @MatthewGitter 's comment, You can set up the desktop icon/Applications menu item through the launcher's Configure option. If you have an open project, to get to the launcher you have to go to File -> Close Project first, then Configure -> Create Desktop Entry
Hey! You can use this script that is generated by goland in ubuntu. Although the result is almost same with this gist.