Icons are cached in one very big file:
GTK+ can use the cache files created by gtk-update-icon-cache to avoid
a lot of system call and disk seek overhead when the application
starts. Since the format of the cache files allows them to be mmap()ed
shared between multiple applications, the overall memory consumption
is reduced as well.
Every theme should create a cache file on installation.
/usr/share/icons/[theme]/icon-theme.cache
So for example - if you remove/rename the gnome icon-cache file:
sudo mv /usr/share/icons/gnome/icon-theme.cache /usr/share/icons/gnome/icon-theme.cache.backup
You can then regenerate the cache:
sudo gtk-update-icon-cache --force /usr/share/icons/gnome
In your case, you have added your application icons to hicolor - therefore you should force the regeneration of this cache file to pick up the new icons:
sudo gtk-update-icon-cache --force /usr/share/icons/hicolor
source
The way of installing icons in Lubuntu is by going to Customize Look and Feel
:
And these sets of icons are not file-browser-specific, they would be the same in all file browsers.
As icon sets come as deb files you might try an icon-set that contains the image for your file, extract the deb, replace the file related to what you want with the one you want instead, archive as tar.gz and than replace extension to deb, and install this deb.
But I am afraid I do not know how to do this specifically for the file type you mentioned, because I am not familiar with that file. But you should know more about that.
Also a problem might be the fact that these images in the deb file are svg, not png images.
Instead of trying all this, maybe you should consider that the best way to deal with your friend would be not to show him that Ubuntu can do the same things as Windows, but that it can do a lot more, only differently. For example changing all icons very easily.
Why bother to add single file-type icon when you can get unitary-style icon sets of superior quality?
For example these monochrome ones:
or
More HERE
You might find that an icon-set you like will also change the image of the type of file you talk about to something better than you had imagined.
Best Answer
Here is a set of instructions that should get you a custom icon for hwp files.
Open a terminal :
Check the MIME type exists :
grep 'hwp' /etc/mime.types
if you get an output resembling
application/x-hwp hwp
skip the next step.Create the MIME type
sudo -H gedit /etc/mime.types
and add the lineapplication/x-hwp hwp
Add the icon (which must be called
application-x-hwp.svg
):(don't forget to replace PathToIcon)
Got the information from here