add tray icon workaround for newer Ubuntu releases (fixes #9046)
This commit is contained in:
parent
4c00176599
commit
254dcdaa45
1 changed files with 2 additions and 2 deletions
|
@ -162,8 +162,8 @@ 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
|
// Workaround for electron/electron#5050 and electron/electron#9046
|
||||||
if (process.platform === 'linux' && process.env.XDG_CURRENT_DESKTOP === 'Pantheon') {
|
if (process.platform === 'linux' && ['Pantheon', 'Unity:Unity7'].indexOf(process.env.XDG_CURRENT_DESKTOP) !== -1) {
|
||||||
process.env.XDG_CURRENT_DESKTOP = 'Unity'
|
process.env.XDG_CURRENT_DESKTOP = 'Unity'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue