bayleeadamoss / zazu

:rocket: A fully extensible and open source launcher for hackers, creators and dabblers.
http://zazuapp.org
MIT License
2.09k stars 168 forks source link

Initialize screen library when window shows. #281

Closed bayleedev closed 7 years ago

bayleedev commented 7 years ago

This is a possible fix for #280

The issue is that we are loading electron.screen before the app.on('ready') event, which does not make sense since the stack trace goes back to that exact event. To solve this, I just moved the initialization to when the app shows, which should happen a while after the ready event.

@unpeudetout can you take a look at this and see if this resolves the issue?

noam-sc commented 7 years ago

I tested and it's working ! Thanks a lot. screenshot_261

bayleedev commented 7 years ago

Thank you! I'll publish a release.