MacOS – How to stop maps, photos, and ibooks from loading in dock on startup

dockmacos

I checked system preferences (screenshot attached). They are not listed there.

System preferences - Login Items

I checked the folders mentioned in this question, but they are not listed there:

# Nothing
grep -i -R photo /Library/Launch*/*
grep -i -R photo /Users/$(whoami)/Library/Launch*/*
sudo grep -i -R photo /Library/Preferences/*

When I right click on one of the icons in the dock, all I see is a "Remove from Dock" option. I click this every time my computer starts up.

Remove from dock in right click menu

How do I stop these applications from putting themselves into the dock on startup?

I'm on OSX Yosemite 10.10.5 if it makes a difference.

Best Answer

This should solve your problem: https://jamfnation.jamfsoftware.com/discussion.html?id=12266

You have to edit the following file: /System/Library/CoreServices/Dock.app/Contents/Resources/com.apple.dockfixup.plist

Right below <key>add-app</key>, you can remove all the <dict>...</dict> related to the apps you don't want to appear in the Dock on startup.

[EDIT]
It looks like this file cannot be edited anymore with El Capitan due to the System Integrity Protection (SIP). See this discussion about it.