getstation / electron-process-manager

Process manager UI for Electron applications
188 stars 40 forks source link

Electron tray can't show #6

Closed FireQQTW closed 6 years ago

FireQQTW commented 6 years ago

When I require this module and use Tray, tray only show Flashing then hide.

I followed the problem and found that electron-process-reporter read rxjs cause this problem.

Do you have any other suggestions?

Thanks.

FireQQTW commented 6 years ago

I fixed it. Not rxjs probule.

Tray did not declare variables outside of app.ready, Cleared by Javscript GC, rxjs makes the tray disappear faster.

let tray = null;

app.on('ready', () => {
  tray = new Tray('path/to/image.png');  
});

Thanks.