Startup Item for all users

Discussion in 'Mac Programming' started by shuggans, Jun 22, 2016.

  1. shuggans macrumors newbie

    Joined:
    Jun 22, 2016
    #1
    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?
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
  3. shuggans thread starter macrumors newbie

    Joined:
    Jun 22, 2016
    #3
    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.
    --- Post Merged, Jun 22, 2016 ---
    I just accomplished with an exec statement at the end of the /etc/profile file
     

Share This Page