Merge pull request #9716 from dakira/fix-9046
Add tray icon workaround for newer Ubuntu releases (fixes #9046)
This commit is contained in:
commit
a6ea316a5d
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue