I've been looking at https://code.google.com/p/munki/wiki/PreAndPostinstallScripts
Here's the situation, I'm thinking about the Dock. Believe it or not, but a lot of my staff do not understand how to add an app to the Dock. So if I have an optional install for, say, Google Earth, they very likely can install it, but then won't know how to put it on the Dock. Most of the time if they do find the app in /Applications they just drag it to the Desktop. And we know how fun that was pre-ML.
So for some apps, I want to automatically add the app to the dock of all user accounts. I'll use dockutil.py for this. In some cases maybe a teacher doesn't actually want it in the Dock, but that'll be the minority of cases if they've just elected to install an optional app.
So I was thinking of a couple of ways to approach this. One was another optional package (based on nopkg? or just a payload from .pkg?), Dock: Add Google Earth, but I'm not sure Munki supports optional installs that have dependencies on other optional installs. (Have only glossed over that documentation so far.) And I'm not sure I really want to clutter up the list of optional installs this way. Seems clunky.
So I think the way to go is a postinstall script that just uses dockutil.py to add app the dock of all users. Just wondering if anyone else does anything like this and if so, is this how you handle it?
The nice thing about this method is I can use postuninstall_script to also remove the app from the Dock if they later choose to remove the app via MSU.
Thoughts?
Bryan
--
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
For our managed computers, like student computers, we do use MCX to manage the Dock.But for staff, like I said, believe it or not, most of them don't actually know how to put something in the Dock. So this is purely a convenience for them.
Documentation=Empowerment.