I am searching for a way to get the icon associated with a certain file type on Linux.
Either using a shell script or python.
I prefer a native python method whi
I don't think that icon files are the same across platforms...
On a Mac, the icons are stored in the application bundle - EG:
/Applications/Mail.app/Contents/Resources/app.icns
In Linux they seem to be in a similar, but different place EG:
/usr/lib/firefox/icons/mozicon16.xpm
So, I think you are out of luck for an easy, cross-platform solution and will have to code the routine to look into the appropriate place for each OS