Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
fd4a8096
Commit
fd4a8096
authored
Jul 04, 2017
by
Pieterjan Vanhoof
Committed by
GitHub
Jul 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #147 from Daegalus/fix_spaces
Fix handling spaces in path to Breeze Daemon
parents
bc353f30
03577687
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
main.ts
Breeze.UI/main.ts
+16
-7
No files found.
Breeze.UI/main.ts
View file @
fd4a8096
...
@@ -115,14 +115,19 @@ function startApi() {
...
@@ -115,14 +115,19 @@ function startApi() {
apipath
=
path
.
join
(
__dirname
,
'.
\\
assets
\\
daemon
\\
Breeze.Daemon.exe'
);
apipath
=
path
.
join
(
__dirname
,
'.
\\
assets
\\
daemon
\\
Breeze.Daemon.exe'
);
}
}
//Handle spaces in paths
apipath
=
apipath
.
replace
(
/ /g
,
'
\\
'
);
apiProcess
=
exec
(
apipath
+
' light -testnet'
,
{
apiProcess
=
exec
(
apipath
+
' light -testnet'
,
{
detached
:
true
detached
:
true
});
},
(
error
,
stdout
,
stderr
)
=>
{
if
(
error
)
{
apiProcess
.
stdout
.
on
(
'data'
,
(
data
)
=>
{
writeLogError
(
`exec error:
${
error
}
`
);
writeLog
(
`stdout:
${
data
}
`
);
return
;
if
(
mainWindow
==
null
)
{
}
createWindow
();
if
(
serve
)
{
writeLog
(
`stdout:
${
stdout
}
`
);
writeLog
(
`stderr:
${
stderr
}
`
);
}
}
});
});
}
}
...
@@ -157,5 +162,9 @@ if (os.platform() === 'win32') {
...
@@ -157,5 +162,9 @@ if (os.platform() === 'win32') {
};
};
function
writeLog
(
msg
)
{
function
writeLog
(
msg
)
{
console
.
log
(
msg
);
console
.
log
(
msg
);
};
function
writeLogError
(
msg
)
{
console
.
error
(
msg
);
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment