I created a Mac OS X helper application that always runs as root. I need to run another application from it, but not as root. I want it to run from the current user (not sudoed root).
I tried using [NSTask launchedTaskWithLaunchPath:arguments:] and many other methods, but they all use root privileges to run my application.
How can I run the application from the assistant as the current user in Mac OS X?
source share