4 ms·
You can turn it off for network volumes: defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE https://support.apple.com/en-us/102064
by js2 2y ago
You can turn it off for network volumes:
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
https://support.apple.com/en-us/102064 https://support.apple.com/en-us/102064
I don't recall there ever being a way to turn it off for local volumes.
- silverwind 2y agoThere was https://github.com/binaryage/asepsis https://github.com/binaryage/asepsis but Apple broke it IIRC.
- deleted 2y ago[deleted]
- js2 2y agoIt was a hack, not anything Apple ever supported: > At core Asepsis provides a dynamic library DesktopServicesPrivWrapper which gets loaded into every process linking against DesktopServicesPriv.framework. It interposes some libc calls used by DesktopServicesPriv to access .DS_Store files. Interposed functions detect paths talking about .DS_Store files and redirect them into a special prefix folder. This seems to be transparent to DesktopServicesPriv. > Additionally Asepsis implements a system-wide daemon asepsisd whose purpose is to monitor system-wide folder renames (or deletes) and mirror those operations in the prefix folder. This is probably the best we can do. This way you don’t lose your settings after renaming folders because rename is also executed on folder structure in the prefix directory. Unsurprisingly, you can no longer do anything like this with SIP. If you're willing to disable SIP, there are forks of the project that apparently still work.
- deleted 2y ago[deleted]
- nness 2y agoI set up my samba config to veto .DS_Store files, which also seems to work (although not sure if it creates more overhead as MacOS tries to recreate it each time...)
- grishka 2y agoIs it also possible to do this for removable media? It seems to be the first time I'm seeing Apple themselves officially recommending a "defaults write" command.
- js2 2y agoNot sure if this still works, but: defaults write com.apple.desktopservices DSDontWriteUSBStores -bool TRUE Re: defaults: https://support.apple.com/guide/terminal/edit-property-lists-apda49a1bb2-577e-4721-8f25-ffc0836f6997/mac https://support.apple.com/guide/terminal/edit-property-lists...