Document Actions

.DS_Store, how I hate thee

by David Hostetler [posted 20081125:12:15 (Tue)]

An OS and/or window manager shouldn't be leaving little turds all over my filesystem.  That's exactly what OSX does.  It poops everywhere it goes.  Little OSX dingleberries named '.DS_Store'.  It's annoying enough that it does it locally, where it at least has the good sense to not show them in the GUI file browser (though they're in full view from the shell).  But the fact that it flings its poo all over any and every network mounted directory is just inexcusable.

Thankfully, its easy enough to get it to behave a bit more civilized 'in public', by disabling the creation of the .DS_Store files on network mounted directories.  The necessary bit of OSX voodoo is the following command:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

I think a reboot is necessary for it to take effect.  And you'll probably want to take a broom to any locations that have been sullied, via something like:

find . -mount -name '.DS_Store' | xargs -L1 -I {} rm -v {}

Bad OSX -- No biscuit!!