diff --git a/lib/browser/init.js b/lib/browser/init.js index 5e4fbf28199..8153cb904a2 100644 --- a/lib/browser/init.js +++ b/lib/browser/init.js @@ -162,8 +162,8 @@ 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') { +// Workaround for electron/electron#5050 and electron/electron#9046 +if (process.platform === 'linux' && ['Pantheon', 'Unity:Unity7'].includes(process.env.XDG_CURRENT_DESKTOP)) { process.env.XDG_CURRENT_DESKTOP = 'Unity' }