Mac OS X/macOS stores Finder layout information (including desktop icon placement) within the .DS_Store file that's located inside the current directory.
Where does OSX store the Desktop layout configuration info?
Mac OS X/macOS stores Finder layout information (including desktop icon placement) within the .DS_Store file that's located inside the current directory.