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
cbb99784
Commit
cbb99784
authored
Jul 06, 2017
by
Pieterjan Vanhoof
Committed by
GitHub
Jul 06, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #152 from stratisproject/ui
Fix daemon loading when spaces in path
parents
be13ebf8
c4c4c946
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
main.ts
Breeze.UI/main.ts
+3
-6
No files found.
Breeze.UI/main.ts
View file @
cbb99784
...
@@ -113,15 +113,12 @@ function startApi() {
...
@@ -113,15 +113,12 @@ function startApi() {
const
exec
=
require
(
'child_process'
).
exec
;
const
exec
=
require
(
'child_process'
).
exec
;
//Start Breeze Daemon
//Start Breeze Daemon
let
apiPath
=
path
.
join
(
__dirname
,
'.//assets//daemon//Breeze.Daemon'
);
let
apiPath
=
path
.
join
(
__dirname
,
'".//assets//daemon//Breeze.Daemon"'
);
apiPath
=
apiPath
.
replace
(
/ /g
,
'// '
);
if
(
os
.
platform
()
===
'win32'
)
{
if
(
os
.
platform
()
===
'win32'
)
{
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
)
=>
{
},
(
error
,
stdout
,
stderr
)
=>
{
if
(
error
)
{
if
(
error
)
{
...
...
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