The shell command and the script require to set the name of your main volume and the admin user. To execute the bash script (save any open files and quit all apps first) and reboot to Recovery Mode enter in Terminal: cd Desktop The two Dock resource files (finder.png and have to reside on the same user's desktop. Move the bash script to your admin user's Desktop. In my environment this happened sometimes because reboot was too slow to kill everything (or sudo. sudo doesn't exist in the Recovery Mode base system and executing it throws an error.
#FIND MAC FOLDER ICON PNG MAC#
The sudo commands reboot your Mac to Recovery Mode. Only then the resource files will be copied to Dock.app's Resource folder, the iconcache will be deleted and the Mac reboots. The if statement detects whether the Mac is booted to Recovery Mode. The variable DOCKRES defines the path to the Resource folder of Dock.app in Recovery Mode. Sudo nvram "recovery-boot-mode=unused" > /dev/null 2>&1 Remove Dock's icon cache: sudo find /private/var/folders/ -name -exec rm \ Example (assuming the new Finder icon finder.png is on your desktop): sudo cp /Users/your_username/Desktop/finder.png /System/Library/CoreServices/Dock.app/Contents/Resources/ To remove the original icon type: sudo rm /System/Library/CoreServices/Dock.app/Contents/Resources/finder.pngĬopy the new icons with the Terminal to the Resources folder(s). Now modify Dock's Finder icons: ( /System/Library/CoreServices/Dock.app/Contents/Resources/finder.png and or Finder's Finder icons: /System/Library/CoreServices/Finder.app/Contents/Resources/Finder.icns In the Terminal type sudo mount -rw / and hit ⏎ Return/Enter to execute the command In the Terminal type reboot and hit ⏎ Return/EnterĪfter rebooting to the standard macOS and logging on to a user with admin privileges, open Terminal in the folder /Applications/Utilities/ In the Terminal type csrutil disable and hit ⏎ Return/Enter to execute the command mount your system volume read/write (usually it's read-only)īoot to macOS Recovery (AKA Recovery Mode) by booting|rebooting and pressing cmd R right after the startup chimeĪfter booting is completed you'll see a window titled macOS Utilites.To overcome the involved hurdles (and re-enable them later), you have to reboot at least twice. With all default security measures of Catalina enabled you can't change neither Finder's icon nor Dock's Finder icon without rebooting.