🐧 🐛 Workaround for electron/electron#5050
Chromium only show the Tray icon with libappindicator when the env `XDG_CURRENT_DESKTOP`'s value is `Unity`. But under elementaryOS its value is 'Pantheon'. Set it to `Unity` before app startup make the tray icon show under elementaryOS.
This commit is contained in:
parent
f5694daeb7
commit
938b9e897a
1 changed files with 5 additions and 0 deletions
|
@ -58,3 +58,8 @@ if (process.platform === 'win32') {
|
||||||
process.windowsStore = true
|
process.windowsStore = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Workaround for electron/electron#5050
|
||||||
|
if (process.platform === 'linux' && process.env.XDG_CURRENT_DESKTOP === 'Pantheon') {
|
||||||
|
process.env.XDG_CURRENT_DESKTOP = 'Unity';
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue