Skip to content

Commit

Permalink
Merge 2e0524a into cb4624d
Browse files Browse the repository at this point in the history
  • Loading branch information
anandsinghparihar committed Jan 29, 2018
2 parents cb4624d + 2e0524a commit ec81816
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions modules/daemon/daemonManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,16 @@ class DaemonManager extends EventEmitter {

log.debug(`Platform: ${platform}`);

let binPath = path.join(app.getPath('userData'), 'particld', 'unpacked', 'particld');
let binPath;

if (platform === 'win') {
binPath += '.exe';
try {
binPath = fs.readFileSync(path.join(app.getPath('userData'), 'particld', 'unpacked', 'particld'));

if (platform === 'win') {
binPath += '.exe';
}
} catch (err) {
log.info('No such a directory Particl Desktop.');
}

log.info(`Client binary path: ${binPath}`);
Expand Down

0 comments on commit ec81816

Please sign in to comment.