snielsen / DeathToDSStore

.DS_Store is an abomination and must be stopped.
http://www.aorensoftware.com/blog/2011/12/24/death-to-ds_store/
396 stars 28 forks source link

err 5 on macOS Sierra #9

Closed ghost closed 5 years ago

ghost commented 6 years ago

Here is what I get when I’m trying to run DeathToDSStore on macOS Sierra (10.12.6):

$ sudo /Library/Application\ Support/Aoren/DeathToDSStore.app/Contents/MacOS/DeathToDSStore -silent
Password:
2018-10-06 07:29:58.545 injector[2271:20169] bundlePath: /Library/Application Support/Aoren/DeathToDSStore.app/Contents/Resources/FinderOverride.bundle
2018-10-06 07:29:58.545 injector[2271:20169] stubPath: /Library/Application Support/Aoren/DeathToDSStore.app/Contents/Resources/mach_inject_bundle_stub.bundle
2018-10-06 07:29:58.545 injector[2271:20169] pid 302
Could not access task for pid 302. You probably need to add user to procmod group
mach_inject failing.. (os/kern) failure
2018-10-06 07:29:58.548 injector[2271:20169] err 5
snielsen commented 5 years ago

You will get that error if you haven't disabled System Integrity Protection first. Currently the easiest way to do that is to boot in Recovery Mode, open up the Terminal and execute "csrutil disable". Beware though, SIP is there for a reason and so make sure you understand the risk that disabling it entails.