How to find name of png file used on a desktop launcher?

I would like to learn how to determine the name of the .png file used on a desktop launcher. By opening the properties box of a launcher, it is possible to get a lot of info and to change the .png file. I would like to learn how to determine the file name of the .png file used for a launcher, but have been unable to find a way to do it.

Thanks- tom


Solution 1:

Hit super and start typing main menu until it shows up. Click it and you will see your menu. I will take deluge as an example. This is the icon it shows in the launcher:

im5

One way of finding it is:

im1

Choose properties and you will see:

im2

Click the icon and it will show the directory of the icon at the top:

im6

So it is in /usr/share/icons/Faenza-dark/apps/48. In there are several directories with sizes and in there are the icons for said size. Your should be able to find the exact name of any icon in the menu.

The launcher for deluge sits in /usr/share/applications/ and is called deluge.desktop. When I open it with gedit (gedit /usr/share/applications/deluge.desktop) you will see 1 of the lines stating what the name of the icon is: Icon=deluge. I assume all of these icons are png(?)

So now we know the name but not the location on the disc but we can use locate on command line for that. This is a list of all deluge.png files on my system (basically all the themes and all the sizes):

im7

If you want to find all icons in any of the launchers you can do that command line too:

cd /usr/share/applications
grep -R Icon= *desktop | more

and you will get this:

im9

Pages and pages of icon names!