I am developing an application that I want to start automatically when a user logs in. There are several answers on how to do this, in particular, I use the code from this GitHub repository , and it works great.
What I want now, and I canβt find how to do it, launches the application, but does not show the main window. This only happens when the application starts at login, if the application is closed and the user opens it by clicking on the Dock (or something else), I want it to show a window.
Is it possible? Any ideas on how to do this?
In the settings of the account system, where you install applications that run when you log in, there is a βhiddenβ check that does what I want, but I want to do it programmatically.
source share