Posted on 09-10-2020 09:57 PM
I have a simple dock addition policy, it completed successfully but does not show the self service app on the dock afterward. the after policy user interaction pops up as well
I tried killall Dock as well and nothing changed
I added the Dock item via Jamf Admin and then pointed to it for the Dock Items attribute of the policy
Solved! Go to Solution.
Posted on 09-11-2020 09:51 AM
@Macuser1810 If you didn't customize the name, then what you need for the Dock item is file:///Applications/Self%20Service.app/
- Jamf not part of the app name by default.
Posted on 09-11-2020 06:21 AM
@Macuser1810 Just to verify, you used Settings->Self Service->Branding to change the Self Service app name to "Jamf Self Service.app"?
Posted on 09-11-2020 08:16 AM
@sdagley I did not, I went there but it showed for IOS or Ipad and not MacOS. Do i still need to set this piece up first before deploying the software
Posted on 09-11-2020 09:46 AM
If you're ever not sure on the correct path, drag the program from the Applications folder in Finder to a Terminal Window, it will give you the current path. You could also right click on the application in the Applications folder and choose Get Info for the path.
Your example has an extra slash. Should be something like
file://Applications/Self Service.app
Posted on 09-11-2020 09:51 AM
@Macuser1810 If you didn't customize the name, then what you need for the Dock item is file:///Applications/Self%20Service.app/
- Jamf not part of the app name by default.
Posted on 09-11-2020 11:58 AM
Weird, i just edited, changed the name to what you gave me. Then changed it back as i noticed that it was actually named Jamf Self Service.app on other machines as well. Then i saved it and pushed it again, it worked.
Dont know what changed but really appreciate your help once again!
Posted on 09-11-2020 11:59 AM
@larry_barrett thank you appreciate the tip
Posted on 09-11-2020 12:36 PM
@Macuser1810 Good to hear you got it working, but it sounds like someone has customized the Self Service app name for your JSS. You can check that by going to the Settings page of your JSS console, selecting the macOS icon in the Self Service section, then selecting the Branding tab.
07-18-2023 11:37 PM - edited 07-18-2023 11:38 PM
Guys, sorry to reopen the thread. I've macOS of 13.4.1(c) and trying to deploy the customised dock using
the below script. When I manually execute the script in terminal, it is getting executed successfully
but nothing appearing in the dock even after kill the dock. Kindly advice.
#!/bin/zsh
# dockutil path
dockutil="/usr/local/bin/dockutil"
# Exit if Dockutil is not installed
if [[ ! -f ${dockutil} ]]; then
echo "dockutil is not installed. Existing..."
exit 1
fi
# Get major macOS Version
os_version=$(sw_vers -productVersion | awk -F. '{print $1}')
# Wait for the Dock
while ! pgrep -x "Dock" >/dev/null 2>&1; do
echo "Waiting for Dock..."
sleep 1
done
# Get the username of the currently logged in user
username=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }')
# Cleanup Dock
/usr/local/bin/dockutil --remove all --no-restart /Users/"${username}"
# Add applications
/usr/local/bin/dockutil --add "/Applications/Self Service.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/System/Applications/Launchpad.app" --no-restart /Users/"${username}"
if [[ ${os_version} -ge 13 ]]; then
/usr/local/bin/dockutil --add "/System/Volumes/Preboot/Cryptexes/App/System/Applications/Safari.app" --no-restart /Users/"${username}"
else
/usr/local/bin/dockutil --add "/Applications/Safari.app" --no-restart /Users/"${username}"
fi
/usr/local/bin/dockutil --add "/Applications/Google Chrome.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Firefox.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Microsoft Word.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Microsoft Excel.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Microsoft PowerPoint.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Microsoft Outlook.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Microsoft Teams.app" --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add "/Applications/Microsoft OneNote.app" --no-restart /Users/"${username}"
if [[ ${os_version} -ge 13 ]]; then
/usr/local/bin/dockutil --add "/System/Applications/System Settings.app" --no-restart /Users/"${username}"
else
/usr/local/bin/dockutil --add "/System/Applications/System Preferences.app" --no-restart /Users/"${username}"
fi
# Add Downloads
/usr/local/bin/dockutil --add '~/Downloads' --display folder --no-restart /Users/"${username}"
/usr/local/bin/dockutil --add '/Applications' --display folder --sort name /Users/"${username}"
sleep 5
sudo killall Dock