Non-Apple apps as a login item via a configuration profile or casper MCX?

bentoms
Release Candidate Programs Tester

Hi all,

Any idea how to set a non-Apple app as a login item via a configuration profile or Casper MCX?

I know i could do this via a LaunchAgent, but am trying to avoid that for now if possible.

2 ACCEPTED SOLUTIONS

bentoms
Release Candidate Programs Tester

Sorted:

Create a config profile > select login items > items > add the path to the app bundle.. voila!

View solution in original post

bentoms
Release Candidate Programs Tester

Hi @zskidmor,

I found that adding the app to a profile in v8 would disappear from the GUI.

I now just deploy LauchAgents into
/Library/LaunchAgents/.

Works well.

View solution in original post

8 REPLIES 8

nessts
Valued Contributor II

something along these lines should work for you
defaults write /Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add '<dict><key>Hide</key><false/><key>Path</key><string>/Library/Application Support/PGP/PGP Engine.app</string></dict>'

that will set it as a login item for all users of the computer.

bentoms
Release Candidate Programs Tester

Sorted:

Create a config profile > select login items > items > add the path to the app bundle.. voila!

clifhirtle
Contributor II

Ben:

Are you able to re-edit that policy or set it as a user-level profile?

Only works first time here and only in a computer-level profile.

bentoms
Release Candidate Programs Tester

Hmm.. What JSS are you on? I'm on 8.61..

The reason I went Computer level was so I knew it would be applied @ every login, instead of potentially being requested/pulled from the JSS @ login.

zskidmor
Contributor

Anyone know how to do what @bentoms does in the 9.24 JSS? I don't see the option to add a path to a bundle

bentoms
Release Candidate Programs Tester

Hi @zskidmor,

I found that adding the app to a profile in v8 would disappear from the GUI.

I now just deploy LauchAgents into
/Library/LaunchAgents/.

Works well.

primalcurve
New Contributor III

I've found if you omit the trailing slash from the bundle path it disappears, but leaving it in works.

/Applications/Chess.app - Does not work
/Applications/Chess.app/ - Works

primalcurve
New Contributor III

I should also note I just found that the disappearing one still* exists in the Configuration Profile if you look at the mobileconfig. It just doesn't show in the GUI. This was killing me trying to find out why the "Hide" checkbox was not checked when the config profile actually landed on the machine. It's because the setting was in there twice, once for the "hidden" one and once for the correct one with Hide enabled.

{
    "AutoLaunchedApplicationDictionary-managed" =     (
                {
            Hide = 0;
            Path = "/Applications/Chess.app";
        },
                {
            Hide = 1;
            Path = "/Applications/Chess.app/";
        },
    );
    PayloadUUID = "long-redacted-UID";
}