Skip to content

Commit

Permalink
Fixed GUI start up issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaMineJP committed Feb 20, 2024
1 parent bda1eab commit 4063198
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/gui/src/util/chiaEnvironment.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,14 @@ const startChiaDaemon = () => {
try {
console.info('Running python executable: ');
if (processOptions.stdio === 'ignore') {
const subProcess = spawnChildProcess(script, ['--wait-for-unlock'], processOptions);
const subProcess = spawnChildProcess(`"${script}"`, ['--wait-for-unlock'], processOptions);
subProcess.on('error', (err) => {
console.error(JSON.stringify(err));
});
subProcess.unref();
} else {
const Process = childProcess.spawn;
pyProc = new Process(script, ['--wait-for-unlock'], processOptions);
pyProc = new Process(`"${script}"`, ['--wait-for-unlock'], processOptions);
}
} catch (e) {
console.info('Running python executable: Error: ');
Expand All @@ -126,11 +129,11 @@ const startChiaDaemon = () => {
console.info(`Script ${script}`);

if (processOptions.stdio === 'ignore') {
const subProcess = spawnChildProcess('python', [script, '--wait-for-unlock'], processOptions);
const subProcess = spawnChildProcess('python', [`"${script}"`, '--wait-for-unlock'], processOptions);
subProcess.unref();
} else {
const Process = childProcess.spawn;
pyProc = new Process('python', [script, '--wait-for-unlock'], processOptions);
pyProc = new Process('python', [`"${script}"`, '--wait-for-unlock'], processOptions);
}
}
if (pyProc != null && processOptions.stdio !== 'ignore') {
Expand Down

0 comments on commit 4063198

Please sign in to comment.