I have a electron app with a 'hide to tray' function like in this answer "https://stackoverflow.com/a/38980563/16312733".
But I want that the application doesn't open/show the main windows on startup.
I saw that here is already a question about that "Auto launch to system tray on system startup - Electron + Ionic app" but this question is already a year old and I think this question doesnt get a answer any time soon.
So is there a way to hide the main window on startup so the software is only visible in the tray?