Commit fd4a8096 authored by Pieterjan Vanhoof's avatar Pieterjan Vanhoof Committed by GitHub

Merge pull request #147 from Daegalus/fix_spaces

Fix handling spaces in path to Breeze Daemon
parents bc353f30 03577687
......@@ -115,14 +115,19 @@ function startApi() {
apipath = path.join(__dirname, '.\\assets\\daemon\\Breeze.Daemon.exe');
}
//Handle spaces in paths
apipath = apipath.replace(/ /g, '\\ ');
apiProcess = exec(apipath + ' light -testnet', {
detached: true
});
apiProcess.stdout.on('data', (data) => {
writeLog(`stdout: ${data}`);
if (mainWindow == null) {
createWindow();
}, (error, stdout, stderr) => {
if (error) {
writeLogError(`exec error: ${error}`);
return;
}
if (serve) {
writeLog(`stdout: ${stdout}`);
writeLog(`stderr: ${stderr}`);
}
});
}
......@@ -159,3 +164,7 @@ if (os.platform() === 'win32') {
function writeLog(msg) {
console.log(msg);
};
function writeLogError(msg) {
console.error(msg);
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment