Not sure how it works on other file managers (or any DE), but for Dolphin you can create a .directory file with its content like:
[Desktop Entry]Icon=/absolute/path/to/image.png
I think it’s more or less universal.
Specifically for Dolphin, there may be a way to achieve the same with extended file attributes (getfattr/setfattr) instead of directories, but I don’t know the attr name for icons if it even exists.
Not sure how it works on other file managers (or any DE), but for Dolphin you can create a
.directoryfile with its content like:[Desktop Entry] Icon=/absolute/path/to/image.pngI think it’s more or less universal.
Specifically for Dolphin, there may be a way to achieve the same with extended file attributes (getfattr/setfattr) instead of directories, but I don’t know the attr name for icons if it even exists.