objective c - Launching app from root account -
i developing cocoa gui app has objective-c daemon. daemon launched launchdaemon, gui launched using loginitems each user. when update deployed need update daemon, simple, , update gui. able exit gui, replace app, , relaunch on each user account running on. daemon of course running root. how can either: 1) root, quit , re-launch app in user's interface? 2) root, quit , re-launch particular loginitem each user logged it? i have tried searching , there lots of discussions including similar question , there doesn't appear working solution available. any appreciated. i believe nsdistributednotificationcenter should work this. note using nsdistributednotificationcenter communicate between processes in different user accounts not, in , of itself, require root privileges. to coordination between user accounts, might distinguish instance of gui app , daemon active , in control, , instances passive. can use nsworkspace's notifications (nsworkspacesessiondid...