In Linux, can one set a custom icon for a folder/directory as it appears in a desktop/file manager?
For example for Windows Explorer one can set a custom icon in the folder's desktop.ini file?
If so, is there a common mechanism or API function to do this (that is perhaps common among distros/desktops/file managers)?
I would like to do this from a standalone console mode program C++ or perhaps using the desktop API for KDE, gnome etc.. (also Unix CDE and OSX)