Skip to main content
Solved

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

  • April 19, 2012
  • 8 replies
  • 7 views

bentoms
Forum|alt.badge.img+35

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.

Best answer by bentoms

Sorted:

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

8 replies

Forum|alt.badge.img+18
  • Valued Contributor
  • April 19, 2012

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
Forum|alt.badge.img+35
  • Author
  • Hall of Fame
  • Answer
  • April 19, 2012

Sorted:

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


Forum|alt.badge.img+11
  • Contributor
  • October 19, 2012

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
Forum|alt.badge.img+35
  • Author
  • Hall of Fame
  • October 19, 2012

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.


Forum|alt.badge.img+7
  • Contributor
  • February 24, 2014

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
Forum|alt.badge.img+35
  • Author
  • Hall of Fame
  • February 24, 2014

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.


Forum|alt.badge.img+4
  • Contributor
  • September 24, 2018

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


Forum|alt.badge.img+4
  • Contributor
  • September 24, 2018

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";
}