On macOs High Sierra I am trying to set a default icon for .pdf files: when I used Adobe Reader all the pdf files showed its icon, then I uninstalled it and replaced it with Foxit Reader as default app to open the same file. However all the pdf files now show a white icon and I would like them to show the Foxit logo instead. I tried to copy-paste the logo from Foxit to a random pdf and it does work, but this cannot be applied to the whole configuration (this means that I should copy-paste everytime the logo in every single pdf file). Is there a way to set the default icon?
Once you have changed the default application using Get Info, you may need to clear the icon cache.
To get started, close all open applications and then launch Terminal from Macintosh HD > Applications > Utilities. Copy and paste the following command at the Terminal prompt and press Return to execute it:
sudo find /private/var/folders/ -name 'com.apple.dock.iconcache' -delete sudo find /private/var/folders/ -name 'com.apple.iconservices' -delete sudo rm -r /Library/Caches/com.apple.iconservices.store
Restart, job done.
When you had the Adobe Reader installed, it was the default PDF reader and that's why all the PDF files have that icon. You can do that same by setting the Foxit Reader as default PDF reader. Follow the instruction below.
Select any PDF file and press Command + i. You will get and Info page. Go to "Open With" selection and select "Foxit Reader" from Applications. You will find an option "Change all". Select that and it will set the app as default PDF reader and will change the icons.