mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-30 08:51:24 +00:00
fix: issue with second instance startup
This commit is contained in:
parent
fcdb935687
commit
99828d048e
1 changed files with 19 additions and 17 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue