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:
Thomas Zarebczan 2018-12-04 13:49:22 -05:00 committed by Sean Yesmunt
parent 137b6aaff1
commit 13be7c3535

View file

@ -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;