Lock the Dock: Preventing Applications from Adding Themselves to My Dock

MacOS Sequoia


I have my most frequently used applications on my dock where I want them. However, there are a number of applications I also use occasionally which I do not want on my dock. Each of them wants to be added to the dock when I open them. When I quit the app, they remain unless I go into the menu to remove them. I would prefer they leave the dock when I close the application.


Is there a way to lock the application doc so that it will not allow applications to add themselves?

Posted on Mar 20, 2025 2:42 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 20, 2025 4:59 PM

All applications, or just some? I wonder if you have the "Show recent applications in the Dock" preference turned on...even if you had an application toggled to "Keep in Dock", toggling that off or dragging from the Dock should unset that.


You can lock the Dock so it's contents can't be modified using the Terminal:


defaults write com.apple.Dock contents-immutable -bool true; killall Dock


But that seems like overkill, since if you ever did want to add or remove something, you'd have to reverse that.


4 replies
Question marked as Top-ranking reply

Mar 20, 2025 4:59 PM in response to AG Bell

All applications, or just some? I wonder if you have the "Show recent applications in the Dock" preference turned on...even if you had an application toggled to "Keep in Dock", toggling that off or dragging from the Dock should unset that.


You can lock the Dock so it's contents can't be modified using the Terminal:


defaults write com.apple.Dock contents-immutable -bool true; killall Dock


But that seems like overkill, since if you ever did want to add or remove something, you'd have to reverse that.


Mar 20, 2025 2:51 PM in response to AG Bell

AG Bell wrote:

MacOS Sequoia

I have my most frequently used applications on my dock where I want them. However, there are a number of applications I also use occasionally which I do not want on my dock. Each of them wants to be added to the dock when I open them. When I quit the app, they remain unless I go into the menu to remove them. I would prefer they leave the dock when I close the application.

Is there a way to lock the application doc so that it will not allow applications to add themselves?


Seems odd.


typically periodic app will show on the right side of the Dock (before the divider) and remove them selves when Quit.

Note: Command Q quits the app not the red pill button to close the window.


You can Control click that Dock icon and there are some options there— but does not seem relevant...


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Lock the Dock: Preventing Applications from Adding Themselves to My Dock

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.