I created a .desktop file to launch Chrome in a specific profile. Here is the code:

[Desktop Entry]
Name=Chrome School
Comment=Open Chrome in my school account
Exec=google-chrome --profile-directory="Profile 1"

It works after making it executable, but the icon won't show. Icon Missing How do I fix this and make the icon show?

  • Doesn't the icon have any extension? – shrestha_aj Jan 26 '16 at 18:24
  • @shrestha_aj It does, but a guide on the Ubuntu wiki said something about not including the file extension. – user3515 Jan 26 '16 at 21:29
  • Also, I think I have the wrong category names. Can someone tell me the right ones? – user3515 Jan 26 '16 at 21:31
  • Try Categories=Network;WebBrowser; and put the extension for the icon image as show by @Ryan below – shrestha_aj Jan 26 '16 at 22:12

Try including the file extension in the icon name. For example, if it's a PNG file, change the code to Icon=/home/coolo/Pictures/ChromeGold.png.

| improve this answer | |
  • Then why does this Ubuntu Wiki page says not to include the file extension for the image? – user3515 Jan 27 '16 at 16:33
  • Elementary uses Slingshot, while Ubuntu uses the Unity Launcher. Seems like the two launchers have slightly different expectations for what .desktop files should look contain. – Ryan DeBeasi Jan 27 '16 at 16:54
  • Oh. That makes sense now. – user3515 Jan 27 '16 at 16:57

I was facing the same problem with SqlWorkbenchJ. I fixed it putting the .png image set in sqlworkbench.desktop under "Icon" into the directory /usr/share/pixmaps.

After that, the application started to show the proper icon either in plank dock and applications menu.

Hope it helps.

| improve this answer | |

Your Answer

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