I know this question has been asked several times, but I revised all solutions I found and none has worked so far:

  • alacarte to edit/create the icon from scratch. When I assign the icon, it shows, I click "Accept", everything looks fine but the icon is not set. If I open the menu entry again, it has no icon set.
  • .desktop file

    [Desktop Entry] Version=1.0 #or whatever version the software is Type=Application Terminal=false StartupNotify=true Icon=/home/yasin/Android/programming/intellij/bin/idea.png # fill in path to logo Name=IntelliJ IDEA Comment=IntelliJ IDEA # any description Exec=/home/yasin/Android/programming/intellij/bin/idea.sh # fill in path to the executable Categories=Application; # add as many categories as you see fit

Icon path:

$ ls -l /home/yasin/Android/programming/intellij/bin/idea.png
-rw-r--r-- 1 yasin yasin 2911 Sep 22 16:52 /home/yasin/Android/programming/intellij/bin/idea.png

Icon still shows as a grey icon with a question mark in all cases. Is it because my PNG icon is not supported? What format the image has to be? My icon is PNG 128x128. Also tried with 64x64, 48x48 and 16x16 with no success.

PS: IMHO it can't be that complicated to set an icon for an application launcher. Right-clicking on the launcher should allow you to edit the icon right away, same as it shows the option to lock/unlock from the launcher.

  • 1
    take a look at the edited version of your .desktop file; alacarte by default removes the icon's extension in the Icon= line (.png in your case), making it not work. Add the extension manually will probably work. Nov 25, 2014 at 11:21
  • Thanks, indeed removing the .png extension from the file and updating the path in the .desktop makes it work. This can be actually considered a bug. If you write it as an answer I will accept it.
    – m0skit0
    Nov 25, 2014 at 11:25
  • Glad it works, it is a strange behaviour indeed, possibly a bug. Answer posted. Nov 25, 2014 at 11:29

1 Answer 1


For unclear reasons, when you edit the icon of an application's .desktop file with Alacarte, Alacarte edits the Icon= line, but also removes a possible extension from the icon's name.

Editing the icon manually will fix the issue, and your icon will be correct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.