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.

In Unity dash GIMP 2.8.10 has a icon and uses a different one in launcher.

GIMP in Dash

enter image description here

GIMP in Launcher

enter image description here

I searched for GIMP in "File System" and got this.

enter image description here

How can this be done while packaging other apps?

share|improve this question
    
Which version of GIMP are you using? AFAIK gimp only uses one icon. –  Registered User Mar 24 at 6:28
    
Could you attach a screenshot? –  Danatela Mar 24 at 6:29
    
This may be because icons in Launcher are resized. –  Danatela Mar 24 at 6:47
1  
I have added another picture which clearly proves that they are different –  Archisman Panigrahi Mar 24 at 6:57
1  
@terdon They are different. Look closer at the ear. –  Radu Rădeanu Mar 24 at 7:02

1 Answer 1

up vote 16 down vote accepted

Take a look inside of /usr/share/applications/gimp.desktop file. You will see that the value of Image field is set to gimp. So, there is not given an absolute path for the GIMP icon. This means that the system will look for the icon most probably in /usr/share/icons. But there are more icons for GIMP, and the right icon will be chosen depending on the theme and on the resolution at which this should be displayed:

locate gimp.png
/usr/share/app-install/icons/gimp.png
/usr/share/icons/HighContrast/16x16/apps/gimp.png
/usr/share/icons/HighContrast/22x22/apps/gimp.png
/usr/share/icons/HighContrast/24x24/apps/gimp.png
/usr/share/icons/HighContrast/256x256/apps/gimp.png
/usr/share/icons/HighContrast/32x32/apps/gimp.png
/usr/share/icons/HighContrast/48x48/apps/gimp.png
/usr/share/icons/hicolor/16x16/apps/gimp.png
/usr/share/icons/hicolor/22x22/apps/gimp.png
/usr/share/icons/hicolor/24x24/apps/gimp.png
/usr/share/icons/hicolor/256x256/apps/gimp.png
/usr/share/icons/hicolor/32x32/apps/gimp.png
/usr/share/icons/hicolor/48x48/apps/gimp.png

Finally, in the Launcher is chosen (most probably - depending on your settings) /usr/share/icons/hicolor/48x48/apps/gimp.png file and in the Dash is chosen /usr/share/icons/hicolor/256x256/apps/gimp.png file. If you will open these files, you will see that these look exactly like in your images.

share|improve this answer
    
That's why the bigger icon is visible when the launcher size is 64. –  Archisman Panigrahi Mar 24 at 7:14
    
@ArchismanPanigrahi Exactly. –  Radu Rădeanu Mar 24 at 7:14

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.