Some time ago I changed the desktop icon for my main drive. I just made a new icon png and dragged it onto the old icon in the Get Info pane and it changed easy enough. Now it won’t let me change it any further. I cannot go back to the default original or to a new custom icon. Is there some trick to this in Catalina that I am missing? I can change icons on other drives and volumes, but not the main drive.
I’ve already tried disabling Gatekeeper
sudo spctl --master-disable
and mounting the system partition read only
sudo mount -uw
but those did not help.
Lastly, I also tried manually replacing .VolumeIcon.icns in the root folder, but the icon there wasn’t even the current icon, so something is weird there. Also, when I try to delete it, I get an error stating the file cannot be modified or deleted because it is needed by macOS. This is after those terminal commands above.
Something has the icon locked down and I can’t figure out what it is.