I configure several Ubuntu 12.04/13.10 computers remotely using cfengine3. I am wondering how I can add an item to the Launcher for all users. I am aware that I need to set com.canonical.Unity.Launcher favorites, but I don't know how to do that for all users from a script. I have also seen this post which looks very similar to what I need, only I also want to apply the changes to existing users. How can I do so?
To put it another way: I am wondering how to set launcher items for a (or all) users from a script running as root.