PDA

View Full Version : Prevent .DS_Store?




EricBrian
Nov 8, 2005, 01:26 PM
Is there a way to prevent .DS_Store files being written to folders? They are annoying and interfering with my CVS projects.

Thanks! :)



balamw
Nov 8, 2005, 01:53 PM
interfering with my CVS projects.
Isn't that what .cvsignore is for? (Stopping the interference that is).

EDIT: This might help courtesy of google.
http://www.macosxhints.com/article.php?story=2005070300463515

EDIT: Another link from Apple.
http://docs.info.apple.com/article.html?artnum=301711

B

caveman_uk
Nov 9, 2005, 02:41 AM
AFAIK you can't stop it being written - it's used by the finder to store where icons are placed etc. As others have said you can get it to be ignored.

.DS_Store is also a PITA if you use a mac on windows shares. It's invisible to mac users but shows up to windows users. IIIRC however windows uses it's own hidden files and the reverse situation is true.

balamw
Nov 9, 2005, 07:00 AM
AFAIK you can't stop it being written - it's used by the finder to store where icons are placed etc.
From the links I posted, this will stop them from being written on network shares, but there are things you lose, like Finder comments.


Open the Terminal.
Type:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Press Return.
Restart the computer.

B

bond304
Nov 28, 2008, 01:12 PM
From the links I posted, this will stop them from being written on network shares, but there are things you lose, like Finder comments.


Open the Terminal.
Type:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Press Return.
Restart the computer.

B

Doesn't that only work on network volumes?

HiRez
Nov 28, 2008, 01:30 PM
I think OnyX (free) (http://www.versiontracker.com/dyn/moreinfo/macosx/20070) also has an option to disable .DS_Store creation, if you don't like the command line, and it has a lot of other cool things too.