mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
parent
cbf32e34b5
commit
a1a86568d4
1 changed files with 12 additions and 6 deletions
18
gui/main.js
18
gui/main.js
|
@ -155,14 +155,20 @@ app.whenReady().then(() => {
|
|||
|
||||
// start daemon
|
||||
// https://stackoverflow.com/a/5775120
|
||||
console.log("Starting Daemon")
|
||||
daemonProcess = exec('./daemon', function callback(error, stdout, stderr) {
|
||||
// result
|
||||
console.log(stdout)
|
||||
console.log(error)
|
||||
console.log(stderr)
|
||||
console.log("Trying to start daemon binary")
|
||||
daemonProcess = exec('./daemon', function callback(err, stdout, stderr) {
|
||||
if (err) {
|
||||
console.error("Can't start daemon binary");
|
||||
console.error("--> this is only working with the app bundle and a precompiled binaries");
|
||||
return;
|
||||
}
|
||||
console.log(stdout);
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
app.on('activate', () => {
|
||||
if (BrowserWindow.getAllWindows().length === 0) {
|
||||
createWindow()
|
||||
|
|
Loading…
Reference in a new issue