🐧 🐛 Move the workaround to lib/browser/init.js
This commit is contained in:
parent
938b9e897a
commit
ef45b67dbf
2 changed files with 5 additions and 5 deletions
|
@ -162,5 +162,10 @@ require('./api/protocol')
|
||||||
// Set main startup script of the app.
|
// Set main startup script of the app.
|
||||||
const mainStartupScript = packageJson.main || 'index.js'
|
const mainStartupScript = packageJson.main || 'index.js'
|
||||||
|
|
||||||
|
// Workaround for electron/electron#5050
|
||||||
|
if (process.platform === 'linux' && process.env.XDG_CURRENT_DESKTOP === 'Pantheon') {
|
||||||
|
process.env.XDG_CURRENT_DESKTOP = 'Unity';
|
||||||
|
}
|
||||||
|
|
||||||
// Finally load app's main.js and transfer control to C++.
|
// Finally load app's main.js and transfer control to C++.
|
||||||
Module._load(path.join(packagePath, mainStartupScript), Module, true)
|
Module._load(path.join(packagePath, mainStartupScript), Module, true)
|
||||||
|
|
|
@ -58,8 +58,3 @@ if (process.platform === 'win32') {
|
||||||
process.windowsStore = true
|
process.windowsStore = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Workaround for electron/electron#5050
|
|
||||||
if (process.platform === 'linux' && process.env.XDG_CURRENT_DESKTOP === 'Pantheon') {
|
|
||||||
process.env.XDG_CURRENT_DESKTOP = 'Unity';
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue