Last night I was preparing my laptop to go to the office this morning and needed to copy a file off my windows PC desktop to my Mac. Nothing unusual there, just connect to the share and copy the file.
This morning I noticed an additional file sitting on my desktop: .DS_Store and it reminded me that I’ve been meaning to look for a way to turn off this behavior on my Mac. I’m sure I’ve left quite a few .DS_Store files on the network file share at the office 🙂
A quick google turned up this article that describes the commands used to disable that behavior.
To prevent the creation of these files, open the Terminal and type:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
It may be necessary to log out and back in, or even to restart the computer (which is what the article states), for the change to take effect.
I’m sure the guys at work will appreciate me doing this.