Is there a way to do this?
Basically I'm trying to run a script that needs to launch a program.
Putting the script in
/Library/LaunchDaemons works fine, but everything gets run as if its the root user. This doesn't work because it needs to run as if its a real user, but using the
So I moved the script to
~/Library/LaunchDaemons but now it won't launch the program, presumably because its getting run as the user and not with
So I'm stuck. Logging in as the user and going to a terminal and running:
Works absolutely fine, and exactly how its meant to work. So I want to basically emulate that, but in a Launchd script, if possible.