Merge pull request #9716 from dakira/fix-9046

Add tray icon workaround for newer Ubuntu releases (fixes #9046)
This commit is contained in:
Vanessa Yuen 2017-06-09 15:01:32 -07:00 committed by GitHub
commit a6ea316a5d

View file

@ -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'
}