2

Suddenly since yesterday my dock contains 3 apps/folder that I cannot remove:

  • App Store (represented with ? icon)
  • System Preferences (represented with ? icon)
  • Applications folder

Neither lets me remove it from the dock.

enter image description here enter image description here

I was using High-Sierra and now Catalina - same thing. I've tried killall Dock and killall Finder but nothing changed, I've deleted the dock.plist and restarted but nothing happened as well.

How can I solve this? Thanks.

P.S. Regarding the two apps, both "normal" versions can be added and removed from the dock, I don't know where this two "ghosts" came from. Same for all folders (excluding Applications).

EDIT 1: 29-11-2019 10:30 UTC:
I thought I've solved it but no. I made a search by com.apple.dock and found another .plist at /Library/Managed Preferences/[user]/com.apple.dock.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>MCXDockSpecialFolders</key>
    <array/>
    <key>contents-immutable</key>
    <false/>
    <key>static-apps</key>
    <array>
        <dict>
            <key>mcx_typehint</key>
            <integer>1</integer>
            <key>tile-data</key>
            <dict>
                <key>file-data</key>
                <dict>
                    <key>_CFURLString</key>
                    <string>/Applications/System Preferences.app</string>
                    <key>_CFURLStringType</key>
                    <integer>0</integer>
                </dict>
                <key>file-label</key>
                <string>System Preferences</string>
            </dict>
            <key>tile-type</key>
            <string>file-tile</string>
        </dict>
        <dict>
            <key>mcx_typehint</key>
            <integer>1</integer>
            <key>tile-data</key>
            <dict>
                <key>file-data</key>
                <dict>
                    <key>_CFURLString</key>
                    <string>/Applications/App Store.app</string>
                    <key>_CFURLStringType</key>
                    <integer>0</integer>
                </dict>
                <key>file-label</key>
                <string>App Store</string>
            </dict>
            <key>tile-type</key>
            <string>file-tile</string>
        </dict>
    </array>
    <key>static-only</key>
    <false/>
    <key>static-others</key>
    <array>
        <dict>
            <key>mcx_typehint</key>
            <integer>2</integer>
            <key>tile-data</key>
            <dict>
                <key>file-data</key>
                <dict>
                    <key>_CFURLString</key>
                    <string>/Applications</string>
                    <key>_CFURLStringType</key>
                    <integer>0</integer>
                </dict>
                <key>file-label</key>
                <string>Applications</string>
                <key>file-type</key>
                <integer>2</integer>
            </dict>
            <key>tile-type</key>
            <string>directory-tile</string>
        </dict>
    </array>
</dict>
</plist>

Deleted this bastard, killall Dock, and back to normal. The good one is at /Users/[user]/Library/Preferences/com.apple.dock.plist

But today, when I booted my Mac this icons came again... And the procedure I follow yesterday doesn't work anymore. Removing the "bad" .plist or replace it with the good one, does nothing. Even after a reboot or killall Dock :(

EDIT 2: 29-11-2019 15:37 UTC:
After performing the actions suggested by @NathanStrik nothing happened except that this time, after deleting the "bad" .plist and killall Dock the icons disappeared. This is so confusing...

EDIT 3: 19-05-2022:
Guess what, it happened again with my new workstation. But this time I've found a better(?) solution: If you're admin, just disable Managed Settings by holding the option key upon login (check the remember my decision) and you're done. The /Library/Managed Preferences will be empty with no funky .plist files.

3
  • 1
    Normally the ? ones are apps you have deleted that used to be pinned but that wouldn't be the case for System Preferences etc. What happens if you try and drag them off the dock (i.e. click on them and drag them up to the middle of the screen)?
    – lx07
    Commented Nov 28, 2019 at 12:34
  • They ignore me and go back to their position (same if dragged to trash)
    – GuilhE
    Commented Nov 28, 2019 at 14:20
  • I have this on a machine that switched MDM form one system to another, and it appears the profiles got shadowed and the dock icons were pushed and now they are wrong and the old MDM system is gone so I can't "push" dock updates to it. This is a guess but the normal methods of plist files will not fix this.
    – cgseller
    Commented Feb 2, 2023 at 14:07

2 Answers 2

2

=========

EDIT Solution
If you're admin, just disable Managed Settings by holding the option key upon login (check the remember my decision) and you're done. The /Library/Managed Preferences will be empty with no funky .plist files.

=========

This is a hotfix, not a solution, but I've run out of options. Created an automator (named DockThor) to run on startup with:

do shell script "sudo rm /Library/Managed\\ Preferences/[user]/com.apple.dock.plist" with administrator privileges
defaults write com.apple.dock contents-immutable -bool false
killall Dock

And it works.
At least my OCD is happy.

1
  • /Library/Managed\ Preferences/ is the key for removing old dock files or files that are not in the typical Preferences page. These are leftovers from some old MDM or profiles. Good catch.
    – cgseller
    Commented Feb 15 at 1:15
1

Have you checked if your Dock is maybe locked? You could try out the following command in the Terminal app:

defaults write com.apple.dock contents-immutable -bool false

(the above command unlocks the dock)

Then force-quit and restart the dock by typing:

killall Dock

Then try to right-click (or CMD click) on the question marks in the dock, and under "options", choose to remove them.

Hopefully this helps... if not I'll do some more digging for you.

Source: https://forums.macrumors.com/threads/unable-to-remove-greyed-out-question-marks-in-dock.1701440/post-18705823

2
  • Hello @NathanStrik and thanks for your input. Unfortunately the Dock refuses to obey, even with those commands. But now I was able to make them disappear after deleting the "bad" .plist file and killall Dock. See my original post EDIT2
    – GuilhE
    Commented Nov 29, 2019 at 15:40
  • Too bad my suggestion didn't work for you. But I'm glad to see it eventually worked out. Commented Nov 29, 2019 at 20:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .