Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Last active April 25, 2025 00:26
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
@TajwarSaiyeed
Copy link

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

@omkz Thanks a lot dear

@imertvec
Copy link

thanks a lot

@alejandroduran1730
Copy link

Thanks!

@mldedalus
Copy link

For info, Ubuntu 24 added a Desktop Entry by added the .desktop file to: /home/marc/.gnome/apps/jetbrains-idea-ce.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA Community Edition
Icon=/home/marc/work/idea-IC-251.23774.435/bin/idea.svg
Exec="/home/marc/work/idea-IC-251.23774.435/bin/idea" %f
Comment=Capable and Ergonomic IDE for JVM
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-idea-ce
StartupNotify=true
OnlyShowIn=Old;

@Dvixth
Copy link

Dvixth commented Apr 24, 2025

For info, Ubuntu 24 added a Desktop Entry by added the .desktop file to: /home/marc/.gnome/apps/jetbrains-idea-ce.desktop

[Desktop Entry] Version=1.0 Type=Application Name=IntelliJ IDEA Community Edition Icon=/home/marc/work/idea-IC-251.23774.435/bin/idea.svg Exec="/home/marc/work/idea-IC-251.23774.435/bin/idea" %f Comment=Capable and Ergonomic IDE for JVM Categories=Development;IDE; Terminal=false StartupWMClass=jetbrains-idea-ce StartupNotify=true OnlyShowIn=Old;

there is a way to add an icon directly from the IDE easly

@mldedalus
Copy link

For info, Ubuntu 24 added a Desktop Entry by added the .desktop file to: /home/marc/.gnome/apps/jetbrains-idea-ce.desktop
[Desktop Entry] Version=1.0 Type=Application Name=IntelliJ IDEA Community Edition Icon=/home/marc/work/idea-IC-251.23774.435/bin/idea.svg Exec="/home/marc/work/idea-IC-251.23774.435/bin/idea" %f Comment=Capable and Ergonomic IDE for JVM Categories=Development;IDE; Terminal=false StartupWMClass=jetbrains-idea-ce StartupNotify=true OnlyShowIn=Old;

there is a way to add an icon directly from the IDE easly

Yeah, that's what I did.
I was expecting it to go in /usr/share/applications and it didn't - so for anyone wondering what the add Desktop Entry does under the hood I was sharing here.

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