fix: issue with second instance startup

This commit is contained in:
Igor Gassmann 2018-03-22 11:55:11 -04:00
parent fcdb935687
commit 99828d048e

View file

@ -228,6 +228,7 @@ process.on('uncaughtException', error => {
// Force single instance application
const isSecondInstance = app.makeSingleInstance(argv => {
if (rendererWindow) {
if (
(process.platform === 'win32' || process.platform === 'linux') &&
String(argv[1]).startsWith('lbry')
@ -249,6 +250,7 @@ const isSecondInstance = app.makeSingleInstance(argv => {
}
rendererWindow.show();
}
});
if (isSecondInstance) {