-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockutil 3.02 hangs with macOS 12.5.1 #139
Comments
Looks to be the same as #126 Try running it in the user space |
wow fast answer, thanks. Do you have a sample to avoid try and error for me? Thanks Armin |
Have a look here, https://scriptingosx.com/2020/08/running-a-command-as-another-user/ |
I tried this with your hint. it works when I drag the postinstall script in the terminal window. But when I use it from a pkg installer as postinstall it does not work. But a tiny success, docutil does not hangs anymore. But the desired icon was not created inside the dock. '#!/bin/sh
exit 0' |
you need to run the dockutil command as the user. Your example is not doing that, its just getting the current user |
|
Thank got it working with this script: https://github.com/mvdbent/setDock/blob/main/setDock-addToDock.sh looks similar to your one Armin |
Hello, i have tried https://github.com/mvdbent/setDock/blob/main/setDock-addToDock.sh Script exit code: 1Script result: Dockutil version = 3.0.2no appPath set i used jamf pro 10.42 i have also tried ths but nothing append except relaod dock
exit 0 Or how to user DockUtil.swift with jamf please ? |
Use the script from mvdbent that's working, make it easy and simple 😉 |
@mvught thanks but it's not working for me. |
is this your script? dockutil_corp-settings.sh? in the repo? |
On this repo "GitSweetDragon" ? |
Ok man I read your story and I can help you. I have the same environment ass you are, wat you have to do: Outset you set de dock setting and other things if you like. If you have slack you can pb me, and find me under the same name #macadmins channel and share you more. let me know if this make sense to you and happy to help |
Thanks you |
First you need Outset: Deploy this 2 in your deployment! Thats al you need ;) After enrollment you reboot and then login again and than boom ;) |
And? |
This postinstall script hangs endless with dockutil 3.0.2 any suggestions ?
happens with macOS 12.5.1 Intel iMac 5K 2020
`#!/bin/sh
OLDIFS=$IFS
IFS='.' read osvers_major osvers_minor osvers_dot_version <<< "$(/usr/bin/sw_vers -productVersion)"
if [ ${osvers_major} = 10 ]; then
/Users/Shared/Dockutil/dockutil --add /Applications/EXPOSÉ\ X\ Client/EXPOSE\ X\ Client.app "$HOME"
echo 'docutil v2'
else
/Users/Shared/Dockutil/dockutil3 --add /Applications/EXPOSÉ\ X\ Client/EXPOSE\ X\ Client.app "$HOME"
echo 'docutil v3'
fi
exit 0`
The text was updated successfully, but these errors were encountered: