fix: windows startup checking
Need to check lbrynet start with 2 spaces on Windows. lbrynet.exe does not work properly. https://github.com/yibn2008/find-process/issues/18
This commit is contained in:
parent
137b6aaff1
commit
13be7c3535
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@ if (isDev) {
|
|||
}
|
||||
|
||||
app.on('ready', async () => {
|
||||
const processListArgs = process.platform === 'win32' ? 'lbrynet.exe' : 'lbrynet start';
|
||||
// Windows WMIC returns lbrynet start with 2 spaces. https://github.com/yibn2008/find-process/issues/18
|
||||
const processListArgs = process.platform === 'win32' ? 'lbrynet start' : 'lbrynet start';
|
||||
const processList = await findProcess('name', processListArgs);
|
||||
|
||||
const isDaemonRunning = processList.length > 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue