From 592f00a5cbb8a06edf94501b52a676f960e7a0fe Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Mon, 19 Mar 2018 15:12:46 +0100 Subject: [PATCH] fix(Linux): Fix missing ubuntu tray icon --- src/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index acae356eb..9c1f94f18 100644 --- a/src/index.js +++ b/src/index.js @@ -48,11 +48,11 @@ if (isSecondInstance) { app.exit(); } -// Lets disable Hardware Acceleration until we have a better solution -// to deal with the high-perf-gpu requirement of some services - -// Disabled to test tweetdeck glitches -// app.disableHardwareAcceleration(); +// Fix Unity indicator issue +// https://github.com/electron/electron/issues/9046 +if (isLinux && ['Pantheon', 'Unity:Unity7'].indexOf(process.env.XDG_CURRENT_DESKTOP) !== -1) { + process.env.XDG_CURRENT_DESKTOP = 'Unity' +} // Initialize Settings const settings = new Settings();