Search

Top Posts

Comments

  • slatapolsky: I should have updated this earlier, but I went ahead and upgraded from our old Netgear router (G) to a...
  • Cory: @Dave: It looks like 3rd party developers have access to this functionality, but not all use it. For example, I...
  • ZAYIFLAMA YOLLARI: Zayıflama Yolları, diyet listesi,rejim
  • Dan: You’d definitely need a microphone, mic stand and usb audio interface for a start!
  • Sepp: Mac OS X comes with an even more powerful Firewall than the one in the system preferences. Open up the Terminal...

Categories

Recent Posts


How to prevent .DS_Store file creation

.DS_Store files store folder level metadata information (such as icon placement and background pictures) for Mac OS X to understand, this is fine and dandy and you’re likely to never even notice if you’re a bunch of Macs working together. Unfortunately, these .DS_Store files can be really pesky in a multi-platform network environment, they can basically just lead to unnecessary filesystem clutter that Windows & Linux users receive no benefit from.

Thankfully, you can prevent the DS_Store files from being created entirely by executing a simple command in the Terminal:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

This disables the creation of .DS_Store files for the user account the command was executed on. You can make this change to all user accounts manually by executing the same command under their login, or you can copy modified com.apple.desktopservices.plist file to the ~/Library/Preferences folder of each other user account.

Of course it’s not just Mac OS X that create files that are obnoxious for cross-platformers. The Windows equivalent to the DS_Store file is Thumbs.db, and if you’re a Mac in a largely Windows network, you’ll probably be running into these all the time. You can easily delete Thumbs.db files in Mac OS X by using Spotlight.

Posted by: Manish Patel

Share

Save big on Mac Deals from Amazon.com

Comments:

Comments: 5

Comment from Luke Z
Time: February 3, 2010, 6:21 am

This only disables their creation on network drives. Not entirely.

Comment from Gaurav Jain
Time: February 3, 2010, 7:15 am

Yeah, one of the most problematic occurrences of this for my is on USB flash drives. There is program called BlueHarvest that does a good job of deleting these .DS_Store files as well as other metadata files. It’s available at:

http://www.zeroonetwenty.com/blueharvest/

Comment from Blair
Time: February 3, 2010, 1:31 pm

Snow Leopard users beware! (10.6.2) I had previously activated this setting which prevent .ds_store files from being created on my work network and it caused my system to crash and the finder to lock up and hang. This occurred whenever I tried deleting files or folders (even if the folder was empty) when connected to our network — using the Samba (SMB) protocol and Windows Small Business Server 2003.

Comment from Blair
Time: February 3, 2010, 1:34 pm

Addendum to my previous post: I anticipate this being fixed in the 10.6.3 release.

See the 10.6.3 Apple developer release notes:
http://news.softpedia.com/news/Seed-Notes-Arrive-for-Mac-OS-X-10-6-3-Build-10D538-132974.shtml

Comment from Abhinav Kumar
Time: February 14, 2010, 12:27 pm

thumbs.db do not store metadata but thumbnails to speed up displaying of icons upon revisit…only winxp creates this file…Windows Vista/7 store meta data and thumbnails in a centralized location

Write a comment






February 3rd, 2010