Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

There is an blog article on ubuntu developer blog. http://developer.ubuntu.com/2012/02/how-to-prepare-a-compiled-application-for-ubuntu-software-center/

I followed all steps exactly. But the application seems to have no icon when I search it in the dash. The dash displays only blank white icon.

I am using Ubuntu 12.04

share|improve this question
add comment

1 Answer

The Icon field in the .desktop file, and the file name of the icon file itself, must match. As per the Icon Naming Specification, the name should be the same as the application's executable program. It should also be installed in the appropriate sizes, in the appropriate hicolor icon theme directory, as per the Icon Theme Specification.

It seems there is a typo in the page you link to, which says to name the icon as desktop.png instead of dungeon.png, and it also only talks about installing the single icon, and in the wrong place. This should be considered a bug in the site itself.

If the icons are in the correct place, and still not showing up, it is likely you need to update the icon cache for theme. You can run sudo gtk-update-icon-cache -f /usr/share/icons/hicolor to update the system hicolor theme directory cache, for example.

share|improve this answer
    
Even if I type the icon name correctly it doesn't appear in the dash or launcher. Very sad. I can use xdg-icon-resource after installing the package but this is a hack. –  vrcmr Apr 2 '13 at 20:29
1  
Where did you put the icon on the filesystem? –  dobey Apr 2 '13 at 21:26
    
this is my install thegame_01/* opt/thegame hicolor/scalable/apps/thegame.svg usr/share/icons/hicolor/scalable/apps/thegame.svg hicolor/64x64/apps/thegame.png usr/share/icons/hicolor/64x64/apps/thegame.png hicolor/48x48/apps/thegame.png usr/share/icons/hicolor/48x48/apps/thegame.png hicolor/32x32/apps/thegame.png usr/share/icons/hicolor/32x32/apps/thegame.png thegame.desktop usr/share/applications –  vrcmr Apr 3 '13 at 11:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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