Prevent .DS_Store?

Discussion in 'Mac Programming' started by EricBrian, Nov 8, 2005.

  1. macrumors 6502a

    EricBrian

    Joined:
    Jul 30, 2005
    #1
    Is there a way to prevent .DS_Store files being written to folders? They are annoying and interfering with my CVS projects.

    Thanks! :)
     
  2. Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #2
  3. Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #3
    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.
     
  4. Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #4
    From the links I posted, this will stop them from being written on network shares, but there are things you lose, like Finder comments.

    1. Open the Terminal.
    2. Type:
      Code:
      defaults write com.apple.desktopservices DSDontWriteNetworkStores true
    3. Press Return.
    4. Restart the computer.
    B
     
  5. macrumors newbie

    Joined:
    May 6, 2008
    #5
    Doesn't that only work on network volumes?
     
  6. macrumors 601

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #6
    I think OnyX (free) 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.
     

Share This Page