Skip to main content
Question

Hide app started by launch agent

  • February 28, 2020
  • 1 reply
  • 5 views

Forum|alt.badge.img+3

Hi there,

I have an app set to start at login, which is facilitated by a launch agent. I'd like the app to start hidden. Does anyone have a recommendation on how I might do that?

1 reply

mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • February 28, 2020

Is the LaunchAgent from the vendor of the app, or is it something you created? If it's something you created, what command are you using to launch the application? Because the open command has a few flags that might be helpful. For example, according to the manpage for open, using the -j flag will cause it to hide the app as it opens it. There's also the -g flag which prevents it from coming to the foreground when opened.

Even if the agent comes from the vendor, you might be able to modify it to use one of those flags in whatever command it's using. I'm just not sure what the app is, or how the LaunchAgent is configured.