Skip to content

Commit

Permalink
fix: launch cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Aug 11, 2019
1 parent 252cf4b commit 839d038
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/store/modules/launch.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ const mod = {
version,
extraExecOption: {
detached: true,
cwd: minecraftFolder.root,
},
};

Expand Down Expand Up @@ -162,6 +163,7 @@ const mod = {
});
process.stdout.on('data', (s) => {
const string = s.toString();
console.log(string);
if (string.indexOf('---- Minecraft Crash Report ----') !== -1) {
crashReport = string;
} else if (string.indexOf('Crash report saved to:') !== -1) {
Expand All @@ -174,6 +176,7 @@ const mod = {
ipcMain.emit('minecraft-stdout', string);
});
process.stderr.on('data', (s) => {
console.log(s.toString());
ipcMain.emit('minecraft-stderr', s.toString());
});
process.unref();
Expand Down

0 comments on commit 839d038

Please sign in to comment.