Merge pull request #10355 from owais/master

Add support for indicators in Ubuntu Gnome Session
This commit is contained in:
Cheng Zhao 2017-09-12 15:22:31 +09:00 committed by GitHub
commit 6ebd00267e

View file

@ -163,7 +163,7 @@ require('./api/protocol')
const mainStartupScript = packageJson.main || 'index.js'
// Workaround for electron/electron#5050 and electron/electron#9046
if (process.platform === 'linux' && ['Pantheon', 'Unity:Unity7'].includes(process.env.XDG_CURRENT_DESKTOP)) {
if (process.platform === 'linux' && ['Pantheon', 'Unity:Unity7', 'ubuntu:GNOME'].includes(process.env.XDG_CURRENT_DESKTOP)) {
process.env.XDG_CURRENT_DESKTOP = 'Unity'
}