Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Commit

Permalink
Fixed restart bug, caused by arbitrary path
Browse files Browse the repository at this point in the history
  • Loading branch information
Heejin Lee committed Mar 16, 2016
1 parent 390e6cb commit c20c865
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/main-es6/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ module.exports = (context) => {
if (!_.includes(argv, '--restarted')) {
argv.push('--restarted');
}
if (!argv[0].startsWith('"')) {
argv[0] = `"${argv[0]}"`;
}
cp.exec(argv.join(' '));
setTimeout(() => electronApp.quit(), 500);
}
Expand Down

0 comments on commit c20c865

Please sign in to comment.