diff --git a/src/index.js b/src/index.js index 41de9e6..cde1e71 100644 --- a/src/index.js +++ b/src/index.js @@ -5,7 +5,7 @@ global.oaVersion = 'nightly'; log('Init', 'OpenAsar v' + oaVersion); 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'); global.systemElectron = true; @@ -38,4 +38,4 @@ if (appMode === 'overlay-host') { const bootstrap = require('./bootstrap'); bootstrap(); // Start bootstrap -} \ No newline at end of file +}