Merge pull request #7319 from Menci/master
Workaround for electron/electron#5050
This commit is contained in:
commit
734f42b5f9
1 changed files with 5 additions and 0 deletions
|
@ -162,5 +162,10 @@ require('./api/protocol')
|
|||
// Set main startup script of the app.
|
||||
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++.
|
||||
Module._load(path.join(packagePath, mainStartupScript), Module, true)
|
||||
|
|
Loading…
Reference in a new issue