Skip to main content

As soon as I upgraded to 10.15, I noticed that some items in the dock of the upgrade computers, had question marks instead of the App. No amount of diddling on the Jamf side, fixes this. The app does live on the computer...but something is broken. Jamf is aware of this.

To add to this, also the ability with a profile to position the dock on the left, right, or center, no longer works either!!

I ran into a similar issue a few months back when i started actually trying to manage the dock. I ended up using the tool Dockutil to manage all the dock settings. I wish i would have learned about it earlier. in my experience it's far more reliable than having jamf manage the dock. I have one script that i run as one of the very last things during my enrollment. I noticed that Catalina and Mojave were behaving like you've described above. The launchpad, messages and system preferences app needed a different path for Catalina.

Below is the script that I use for my dock, l don't know if this will help with your specific issue but if you use the dockutil tool, I think fixing the issue would be pretty easy.

#!/bin/bash
### Sets Standard Dock ###


# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#                                   V A R I A B L E S                                       #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

dock_util=/usr/local/bin/dockutil
fullOSVersion=$(/usr/bin/sw_vers -productVersion)
majorOSVersion=$(/usr/bin/sw_vers -productVersion | awk -F. {'print $2'})
minorOSVersion=$(/usr/bin/sw_vers -productVersion | awk -F. {'print $3'})

### Checking for logged in user, assigning to the variable loggedInUser.
if [ "$3" != "" ] && [ "$loggedInUser" == "" ]; then
    loggedInUser=$3
else
    loggedInUser=$(/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }')
fi
echo "Creating $loggedInUser's dock."

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#                                 A P P L I C A T I O N                                     #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #


### Setting Persistent Dock Items ###
sudo -u $loggedInUser $dock_util --remove all --no-restart '/Users/'"$loggedInUser"
sudo -u $loggedInUser $dock_util --add '/Applications/Self Service.app' --no-restart '/Users/'"$loggedInUser"
sudo -u $loggedInUser $dock_util --add '/Applications/Google Chrome.app' --no-restart  '/Users/'"$loggedInUser"
sudo -u $loggedInUser $dock_util --add '/Applications/Safari.app' --no-restart  '/Users/'"$loggedInUser"
sudo -u $loggedInUser $dock_util --add '/Applications/Microsoft Outlook.app' --no-restart '/Users/'"$loggedInUser" 
sudo -u $loggedInUser $dock_util --add '/Applications/Microsoft Word.app' --no-restart '/Users/'"$loggedInUser"
sudo -u $loggedInUser $dock_util --add '/Applications/Microsoft Excel.app' --no-restart '/Users/'"$loggedInUser"
sudo -u $loggedInUser $dock_util --add '/Applications/Microsoft PowerPoint.app' --no-restart '/Users/'"$loggedInUser"
sudo -u $loggedInUser $dock_util --add '/Applications/Microsoft OneNote.app' --no-restart  '/Users/'"$loggedInUser"
sudo -u $loggedInUser $dock_util --add '/Applications/Skype for Business.app' --no-restart  '/Users/'"$loggedInUser"

if [[ $majorOSVersion -ge 15 ]]; then
dockutil --add '/System/Applications/Launchpad.app' --position 1 --no-restart '/Users/'"$loggedInUser"
dockutil --add '/System/Applications/Messages.app' --no-restart '/Users/'"$loggedInUser"
dockutil --add '/System/Applications/System Preferences.app' --no-restart '/Users/'"$loggedInUser"
else
    dockutil --add '/Applications/Launchpad.app' --position 1 --no-restart '/Users/'"$loggedInUser"
    dockutil --add '/Applications/Messages.app' --no-restart '/Users/'"$loggedInUser"
    dockutil --add '/Applications/System Preferences.app' --no-restart '/Users/'"$loggedInUser"
fi

sudo -u $loggedInUser $dock_util --add '/Applications/Cisco/Cisco AnyConnect Secure Mobility Client.app' --no-restart '/Users/'"$loggedInUser"
sudo -u $loggedInUser $dock_util --add '/Users/'"$loggedInUser"'/Downloads' '/Users/'"$loggedInUser"
sudo -u $loggedInUser $dock_util --add '/Users/'"$loggedInUser"'/Documents' '/Users/'"$loggedInUser"

sudo -u $loggedInUser defaults write com.apple.dock show-recents -bool FALSE

killall -KILL Dock

### Exiting gracefully ###
exit 0

@LovelessinSEA

Thanks for your help.

I'm really trying to understand or make myself understood.

If I look at your script using Dockutil, it only works for the current user.
What I am simply looking for is to find the behavior of High Sierra and Mojave with the Dock functionality of Jamf Pro whether it be via Policy or Jamf Remote which is to install an application on Dock at the computer level. That is to say that I add the shortcut once on Dock and this installs the shortcut on the dock of all existing and new users who will create their user accounts and without having to use a login trigger.

It worked very well so far, we have been using it for years.


Not sure if it was mentioned, but you have to use ouset with dockutil. We have used the same script since 10.11.x, still works on 10.15.x


Hi,

I just fixed this for Launchpad by changing the path in Settings -> Computer Management -> Dock items to

file:///System/Applications/Launchpad.app/
file:///Applications/Launchpad.app/

Is anyone running into the issue of facetime not being removed with other dock items? I have a policy that removes launchpad, messages, TV, News, Podcasts, Facetime, and Music. But for some reason facetime refuses to get off the dock. On Catalina 10.15.3 (19D76)

I've tried:
file://Macintosh HD/System/Applications/FaceTime.app
file://Macintosh HD/Applications/FaceTime.app
file://~/Applications/FaceTime.app
file://~/System/Applications/FaceTime.app
file://Applications/FaceTime.app
file://System/Applications/FaceTime.app

Every path i've tried and it stubbornly refuses to get off the dock! I know dockutil can do it probably and i'll resort to that if i have to, i just don't want to have to worry about updating it in the future and adding another policy, package, and script to manage.


@eduffield I have the same thing happen. Its not every device, but its a high number. 70% maybe?

/System/Applications/FaceTime.app for Catalina

You could try /System/Applications/FaceTime.app/Contents/MacOS/FaceTime* , but I wouldn't hold your breath.


Has anyone tried adding relative folders like the User's Documents or Downloads?


Has anyone tried adding relative folders like the User's Documents or Downloads?


@thefishyfew Hello.. I have been trying to add User's Downloads folder to the dock using a policy but doesn't seem to work. Please let me know if it worked for you. 


@thefishyfew Hello.. I have been trying to add User's Downloads folder to the dock using a policy but doesn't seem to work. Please let me know if it worked for you. 


I had to ditch the problem and haven't gotten back to it. None of my users seemed to care or notice so it went way down on my priority list. Sorry I don't have an answer for you.