-
Star
(301)
You must be signed in to star a gist -
Fork
(70)
You must be signed in to fork a gist
-
-
Save rob-murray/6828864 to your computer and use it in GitHub Desktop.
// 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 |
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
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.
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;