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.
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.
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.
Sorted:
Create a config profile > select login items > items > add the path to the app bundle.. voila!
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.
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.
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
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.
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
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";
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.