Skip to content

Commit

Permalink
Merge pull request electron#9716 from dakira/fix-9046
Browse files Browse the repository at this point in the history
Add tray icon workaround for newer Ubuntu releases (fixes electron#9046)
  • Loading branch information
vanessayuenn authored Jun 9, 2017
2 parents 206bca5 + 43271c1 commit a6ea316
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/browser/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down

0 comments on commit a6ea316

Please sign in to comment.