mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
🐧 🐛 Move the workaround to lib/browser/init.js
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user