Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Remove Finder and Trash icons from the Dock System
I just got into Path Finder (finally) and, like many other Path Finder users, quickly grew annoyed by the useless Finder and Trash icons in the Dock. So, through some digging, I found out how to kill them once and for all (kind of).

Navigate to /System » Library » CoreServices, Control-click on then select Show Package Contents from the contextual menu. In the new window that opens, navigate into Resources and open DockMenus.plist in your favorite editor.

Find the entries for finder-quit and trash. In each, change one of the commands so that the command entry is 1004 and the name entry is REMOVE_FROM_DOCK. Save your changes and restart the Dock (killall Dock), and you can then choose Remove From Dock for those two items -- assuming Finder is quit, which Path Finder will do for you.

Unfortunately, it would appear that these entries come back every time the Dock is relaunched, but it beats not being able to remove them at all -- plus, I think this could be easily handled by an AppleScript.

[robg adds: You'll need to do this editing as root (at least in 10.5); I did it in Terminal with sudo vi. Instead of changing an existing entry, I added a new DICT entry for the 1004/REMOVE_FROM_DOCK values in the trash and finder-quit sections. After saving my changes and restarting the Dock, I was able to remove the trash icon via its new Remove from Dock contextual menu entry, so this hint does seem to work as described.

Important note: Making this change in 10.5 will result in breaking code signing for the Dock app. You can confirm this by running this command before and after making the change:
codesign -v /System/Library/CoreServices/
I do not know what the implications are of using the Dock with broken code signing, but potentially, it may affect how it works. Proceed at your own risk -- and back up the original DockMenus.plist file before you start, in case you want it back!]
  • Currently 2.90 / 5
  You rated: 4 / 5 (10 votes cast)

Remove Finder and Trash icons from the Dock | 3 comments | Create New Account
Click here to return to the 'Remove Finder and Trash icons from the Dock' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remove Finder and Trash icons from the Dock
Authored by: markuswarren on May 26, '09 10:03:27AM

If code-signing is broken then in normal use, by this I mean you are using the the account you setup when you installed the OS, ie; an Administrator account, then you probably won't see any problems.

However, if you are logged in as a user who has any form of management control in place (Parental Controls or Management via Workgroup Manager) and this control extends to limiting what applications can be launched, then it is quite possible the Dock will refuse to launch. This is one of the reason for the existence of code-signing in 10.5, as it provides more security for application launch control.

[ Reply to This | # ]
Remove Finder and Trash icons from the Dock
Authored by: saborio on May 30, '09 06:29:49PM

This works like a charm, thanks!

Just in case, here is what my finder-quit key looks like:


[ Reply to This | # ]
Adding the menu option to Finder when running
Authored by: elliottcable on Feb 12, '11 03:05:45PM
I should like to point out that this hint, as written, seems to be specific to Path Finder and such: this adds it to the icon *when quit* (Hence the finder-quit key.) If you *donít* use those, and keep the Finder *running* as normal, then youíll want to add them to the finder-running dictionary instead!

[ Reply to This | # ]