From 07705edcab57875ab76a8819548f78c6fe39797d Mon Sep 17 00:00:00 2001 From: Conor Anderson Date: Tue, 18 Apr 2017 07:43:19 -0400 Subject: [PATCH] Workaround Ubuntu 17.04 tray bug (#576) --- electron/main.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/electron/main.js b/electron/main.js index f0f70ce46be..ab13226654e 100644 --- a/electron/main.js +++ b/electron/main.js @@ -88,6 +88,14 @@ if (process.platform !== 'darwin') { } } +/////////////////////////////////////////////////////////////////////////////// +// Fix indicator icon on Unity +// Source: https://bugs.launchpad.net/ubuntu/+bug/1559249 +/////////////////////////////////////////////////////////////////////////////// +if (process.env.XDG_CURRENT_DESKTOP.includes('Unity')) { + process.env.XDG_CURRENT_DESKTOP = 'Unity'; +}; + /////////////////////////////////////////////////////////////////////////////// // Auto Update ///////////////////////////////////////////////////////////////////////////////