[Index] Fix system electron support not working for non-default Electron version installed
This commit is contained in:
parent
7fac27c2ef
commit
045db9ba91
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ global.oaVersion = 'nightly';
|
||||||
log('Init', 'OpenAsar v' + oaVersion);
|
log('Init', 'OpenAsar v' + oaVersion);
|
||||||
|
|
||||||
log('Init', 'Resources Path:', process.resourcesPath);
|
log('Init', 'Resources Path:', process.resourcesPath);
|
||||||
if (process.resourcesPath === '/usr/lib/electron/resources') { // Using system electron, fix process.resourcesPath
|
if (process.resourcesPath.startsWith('/usr/lib/electron')) { // Using system electron, fix process.resourcesPath
|
||||||
log('Init', 'Detected System Electron, fixing paths');
|
log('Init', 'Detected System Electron, fixing paths');
|
||||||
global.systemElectron = true;
|
global.systemElectron = true;
|
||||||
|
|
||||||
|
@ -38,4 +38,4 @@ if (appMode === 'overlay-host') {
|
||||||
const bootstrap = require('./bootstrap');
|
const bootstrap = require('./bootstrap');
|
||||||
|
|
||||||
bootstrap(); // Start bootstrap
|
bootstrap(); // Start bootstrap
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue