Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Last active April 10, 2024 15:42
Show Gist options
  • Save rob-murray/6828864 to your computer and use it in GitHub Desktop.
Save rob-murray/6828864 to your computer and use it in GitHub Desktop.
Add Intellij launcher shortcut and icon for ubuntu
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ
Exec=/home/rob/.intellij-13/bin/idea.sh
Name=IntelliJ
Icon=/home/rob/.intellij-13/bin/idea.png
// mod permissions
sudo chmod 644 /usr/share/applications/intellij.desktop
sudo chown root:root /usr/share/applications/intellij.desktop
@jyotiranjan97
Copy link

I'm not getting any Create Desktop Entry option in my Intellij. My OS is POP 20.04 LTS and I installed from a standalone tar file.
image

@alimagd
Copy link

alimagd commented Feb 2, 2021

You can also use Intellij IDEA itself to create the Ubuntu launcher icon, as answered elsewhere:

  1. Launch from commandline. If launching for the first time, setup will ask about creating a desktop launcher icon; say yes. Or else after launching (ie. from the commandline) any time, use the IDEA menu Configure > Create Desktop Entry . That should create /usr/share/applications/intellij-idea-community.desktop
  2. Trigger the Ubuntu desktop search (ie. Windows key), find the Intellij IDEA you used to create the desktop entry.
  3. Drag the icon it's showing into the Ubuntu Launcher.

great...tnx alot

@tskxz
Copy link

tskxz commented Feb 3, 2021

I'm not getting any Create Desktop Entry option in my Intellij. My OS is POP 20.04 LTS and I installed from a standalone tar file.
image

Screenshot from 2021-02-03 13-16-03
You need to go in Tools as here at the top of the intellij IDEA. And you will get an option Create Desktop Entry

@jyotiranjan97
Copy link

thanks a lot, I solved... :)

@nwaokoron
Copy link

nwaokoron commented Feb 6, 2021

changing .svg to .png in ~/.local/share/applications/jetbeans-idea-ce.desktop did the trick

@riteshjaiswal-tomtom
Copy link

Thank you

@omkz
Copy link

omkz commented May 11, 2021

Screenshot from 2021-05-11 21-59-00

@galek
Copy link

galek commented May 21, 2021

Thanks a lot!

@harshit149
Copy link

Thanks very much!

@khaosorchestrator
Copy link

Thanks a lot.

@vitormateusalmeida
Copy link

I think it's easier to

  1. open Intelli J
  2. Click on "Tools"
  3. Click on "Create Desktop Entry..."

... and be done.

Noice

@sahanruwantha
Copy link

thank you

@mateusz-rutski-red
Copy link

king gist

@Emcommer
Copy link

Yeah, the instructions say Open IntelliJ, click Tools, then click "Create Desktop Entry." What it DOESN'T say is between step 1 and 2 you have to open a project. The issue is there is a Tools object on the launch screen, but you need the Tools MENU. @8FN you are the man.

@diegolardo
Copy link

Thanks!! work perfectly!

@prelag
Copy link

prelag commented Mar 11, 2022

Thank you very much!

@jeffersonchaves
Copy link

Thanks a lot!

@HEXDude
Copy link

HEXDude commented May 28, 2022

What if that my latest IDEA|CLion doesn't even has 'Creat Desktop Entry' from Tool menu?😢

I'm currently using Ubuntu-20.04 in WSLG as my distro.

image

@agirishkumar
Copy link

I installed IntelliJ in Arch and first launched the program from bin folder by executing ./idea.sh in terminal. in the welcome screen, there is a settings icon at the bottom, there i was able to find create Desktop entry
createdesktopentry

@TheBraveByte
Copy link

Thanks you so much for this tips

@TheBraveByte
Copy link

Thanks you so much for this tips

@Iriza-peace
Copy link

thank u

@Kronomus
Copy link

thank u

@naarad-muni
Copy link

Thank You, this worked

@intelQong
Copy link

thanks

@AlexRuiz7
Copy link

Works like a charm

@Sailokeshg
Copy link

Worked perfectly, thanks

@Razuuu
Copy link

Razuuu commented Sep 26, 2023

/usr/share/applications/jetbrains-idea-ce.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA Community Edition
Icon=<path>/bin/idea.svg
Exec="<path>/bin/idea.sh" %f
Comment=Capable and Ergonomic IDE for JVM
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-idea-ce
StartupNotify=true

@noelty
Copy link

noelty commented Jan 12, 2024

thanks alot

@Dvixth
Copy link

Dvixth commented Feb 5, 2024

The Tools option works perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment