How to auto run as minimized on tray when windows start


#1

I have make my app auto run when windows start, but it has a big window popped up which is annoying

what my user want is to have the app minimized on tray after window start

any idea how can I do that in electron ?

Thanks !!!


#2

Are you creating a BrowserWindow? You could just hide it.


#3

Call BrowserWindow.minimize() right after you call BrowserWindow.show()

http://electron.atom.io/docs/api/browser-window/#winminimize