Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

shuggans

macrumors newbie
Original poster
Jun 22, 2016
2
0
Completely new to Macs here, but I am trying to figure out how to create a startup item for all users that will launch a shell script at login.

From what I understand... I need to use launchd to create a launch agent by placing a plist file into the /Library/LaunchAgents directory - but when I do this the script is not executed (+x has been set on the script) at login.

I am also using el capitan - which I keep finding out has a bunch of things disabled in it.

Am I even going the right direction with this?
 
So what is root isn't launching the process? I need any user who uses the mac to have this script run under their user account at logon... from what I gather of the documentation, that is exactly what the /Library/LaunchAgents directory is for... do plists in there still need to be owned as root?

I made root the owner, and set 644 on the plist - still nothing at logon.
[doublepost=1466627741][/doublepost]I just accomplished with an exec statement at the end of the /etc/profile file
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.