Posted on 06-12-2014 05:19 AM
Hi,
I've come across this a couple of times but I don't understand why some disable the DS_store creation on network shares? Does this give a performance boost?
Solved! Go to Solution.
Posted on 06-12-2014 06:30 AM
The file is touched each time a Mac user opens a window (as that file saves window position, etc.) Windows users see that file when they browse as it is not invisible to them. And some admins consider that .DS_store files to be messy. Not a performance boot, just more a user experience boost.
Posted on 06-12-2014 06:30 AM
The file is touched each time a Mac user opens a window (as that file saves window position, etc.) Windows users see that file when they browse as it is not invisible to them. And some admins consider that .DS_store files to be messy. Not a performance boot, just more a user experience boost.
Posted on 06-12-2014 06:43 AM
Thank you @thoule!
Posted on 06-12-2014 06:48 AM
#!/bin/bash
# Remove .DS_Store files
sudo find / -name ".DS_Store" -depth -exec rm {} ;
# Prevent them from being created on network shares
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Posted on 06-13-2014 06:12 AM
+1 for what jacob posted. I was just going to post that script :D
Posted on 06-13-2014 07:15 AM
If you use any generic user names, the .DS_Store file can cause problems with different clients trying to view the same folder. We found that when new files were created by one machine, other machines could not see the new files until we deleted the .DS_Store.
Posted on 06-13-2014 07:40 AM
Something to keep in mind…
We found that there are several ways to prevent .DS_Store files form being written on server volumes, and they all seem to work fine.
However, we kept finding .DS_Store files on server volumes.
We finally figured out, a lot of people create folders of files on their Desktop and copy them to the server volumes. These solutions do not prevent those files from being copied. So, yes, set the com. apple.desktopservices file to not write .DS_Store files to server volumes, but you will still want to scan volumes and delete the files that get copied out there from time to time to keep them to a minimum.
Posted on 06-13-2014 08:35 AM
That's kind of interesting about no prevention of copying those invisible files, I'd never considered that.
Kevin, on your windows servers, are you searching for and deleting them on a regular basis then?
I'm beginning to think eliminating and permanently blocking those files from being written might increase the abysmal Finder performance when browsing the remote volumes.
Posted on 02-10-2016 11:10 AM
How are you deploying that script? I've tried both a configuration profile and by pushing a script to run the defaults write command, the plist in any user directory I check is still set to "defaults write com.apple.desktopservices DSDontWriteNetworkStores true"
Would a killall -user $USER cfprefsd force enable this?