I run the following command:
sudo defaults write ~/Library/Preferences/com.apple.finder.plist ShowHardDrivesOnDesktop -boolean TRUE
in hopes that this will cause system hard drives to show on the desktop, which doesn't happen. I kill all Finder processes and restart Finder, but no dice.
I try to open com.apple.finder.plist in Xcode, but it says I do not have permissions to view the file (I was able to before). Shortly after, I am able to open it, but the file is empty. The attributes are slowly regenerating.
What is happening here? I am looking for a command to toggle the option to show hard drives on the desktop, just as if I checked the box in Finder preferences.