Skip to content

Commit b1a5171

Browse files
LXZEklaudiosinani
authored andcommitted
Resolve Macos start-up crash issue. Fixes #82 (#90)
fix getPath error inside startup.js (#90)
1 parent dc27798 commit b1a5171

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/startup.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict';
2-
const {app} = require('electron');
2+
const {app, remote} = require('electron');
33
const AutoLaunch = require('auto-launch');
44
const {is} = require('./util');
55
const settings = require('./settings');
66

77
const _settings = {
88
name: 'Ao',
9-
path: is.darwin ? app.getPath('exe').replace(/\.app\/Content.*/, '.app') : undefined,
9+
path: is.darwin ? (app || remote.app).getPath('exe').replace(/\.app\/Content.*/, '.app') : undefined,
1010
isHidden: true
1111
};
1212

0 commit comments

Comments
 (0)