You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Electron based apps that provide an indicator icon display the icon
Actual behavior
Indicator icon is not displayed
How to reproduce
I have this issue in several up to date Electron based applications. Such as: Slack, Google Desktop Music Manager, Skype, etc...
The work around of export XDG_CURRENT_DESKTOP=Unity, mentioned in some older issues does work to fix the issue.
Reacted by Andrew, Thomas Beverley, sergey-alekseichenko-axon, Andres Misiak, Vladislav Shumkin, Dimitris Mouris, radiKal, Ivo Anjo, Vladimir L., Owais Lone and 17 more
FWIW With the impending end of Unity, I've switched back to Ubuntu GNOME. Same desktop as before but Electron tray icons show up fine in the GNOME legacy tray icon strip.
Ah, the joys of non LTS, you get to see issues occur before they even had a chance to be fixed! Kidding, this crap is getting annoying, why did they bother to change anything in Unity 7 if they were trying to replace it, it's just stupid.
So it looks like all electron apps are suffering this bug due to variable name change in Ubuntu 17.04. Workaround isn't the best way to launch all those apps. Seems that electron needs to update their framework, and app developers need to use the updated version. Any ETA on that? I'm kinda affected with this bug a lot, because i use a lot of electron build apps.
I noticed it when I tried to launch Discord shortly after upgrading my system (so I searched the internet to find this bug, and within a day or two, sure enough, it was mentioned).
I don't have a 17.04 VM and don't have the time rn to set one up, if someone with 17.04 can test that fix and PR it in (if it works) that would be great 👍
@mfonville That seems more risky someone who is a lot more familiar with possible values for that environment variable should make that call. I don't want to come across a situation where someone has the env var set to something silly like Unity:MyCustomBuildFrom2002 and we try enable something that won't work 🤔
IMO going the safe route is better unless someone can categorically say the above kind of situation won't happen
I found another workaround, where you could use the original .desktop shortcuts.
Edit ~/.profile with this line added to the end:
export XDG_CURRENT_DESKTOP=Unity
It should work for about any application that stopped showing an indicator in Ubuntu 17.04 till this problem gets sorted.
Update: This workaround does break the System Settings in Ubuntu, so maybe continue editing the .desktop shortcuts.
Reacted by Efesto, Ivo Anjo, Matthias Niess, Artem Molonosov, Vladislav Shumkin, Alex Hall, Miroslav Georgiev, Chris, Alexander, Olivia Moses and 1 more
sudo apt-get install ubuntu-desktop
sudo apt-get remove unity-control-center
sudo apt-get install unity-control-center
sudo apt-get install ubuntu-desktop
sudo apt-get install unity-control-center
sudo apt-get install unity-control-center-signon gnome-control-center-unity
sudo apt-get update --fix-missing
sudo apt-get -f install
But I did not manage to solve it. Can you suggest any ways to solve my problem?
i reinstalled ubuntu desktop notihng changed sudo apt-get install --reinstall ubuntu-desktop 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunset data, using 16.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunrise data, using 8.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunset data, using 16.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunrise data, using 8.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunset data, using 16.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunrise data, using 8.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunset data, using 16.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunrise data, using 8.00
And this did nothing
sudo apt-get install unity-control-center-signon gnome-control-center-unity
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'unity-control-center' instead of 'gnome-control-center-unity'
unity-control-center is already the newest version (15.04.0+17.04.20170402.6-0ubuntu1).
unity-control-center-signon is already the newest version (0.1.9+16.10.20160825-0ubuntu1).
The following packages were automatically installed and are no longer required:
linux-headers-4.10.0-22 linux-headers-4.10.0-22-generic
linux-image-4.10.0-22-generic linux-image-extra-4.10.0-22-generic
linux-signed-image-4.10.0-22-generic
Use 'sudo apt autoremove' to remove them.
Also this did not do anything
sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity
sudo shutdown -r now
see
Reacted by furester, Igor Omelchenko, Jarek Szczepanski, Félix Cantournet, Mindaugas, Alexey Zagalsky, Gabriela Melo, Ivan Pinatti, Craig McInroy, Bryan Conrad and 2 more
Of course this issue is different on Ubuntu 17.10 where we have GNOME now and Ubuntu is using it's own Indicator GNOME extension and current Electron apps are not able to show an icon.
Reacted by Vladislav Shumkin, Gerasimos Pollatos, Tom Watson, Peter Boyd, Paco Orozco, Carl-Erik Kopseng, Patrick Toner and Michał Urbanek
@gmribas's workaround does not work for me. It has virtually no effect. The option to leave the linux app running on the system tray seems to be completely ignored. Notifications work when I manually test it, but none ever show up from actual messages. :(
On Linux platform, only supports Unity desktop environment, you need to specify the *.desktop file name to desktopName field in package.json. By default, it will assume {app.name}.desktop.
Activity
mcg commentedon Mar 29, 2017
Possibly related Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1629251
Thomas101 commentedon Apr 14, 2017
We're seeing the same too :(
mcg commentedon Apr 14, 2017
FWIW With the impending end of Unity, I've switched back to Ubuntu GNOME. Same desktop as before but Electron tray icons show up fine in the GNOME
legacy tray iconstrip.orschiro commentedon Apr 15, 2017
The same for me. I switched from Unity to MATE and there the indicator icons as well as the legacy tray ones show up.
MasicoreLord commentedon Apr 16, 2017
Ah, the joys of non LTS, you get to see issues occur before they even had a chance to be fixed! Kidding, this crap is getting annoying, why did they bother to change anything in Unity 7 if they were trying to replace it, it's just stupid.
luispabon commentedon Apr 19, 2017
Workaround here: http://www.webupd8.org/2017/04/fix-appindicator-not-working-for.html
Spurlos commentedon Apr 21, 2017
So it looks like all electron apps are suffering this bug due to variable name change in Ubuntu 17.04. Workaround isn't the best way to launch all those apps. Seems that electron needs to update their framework, and app developers need to use the updated version. Any ETA on that? I'm kinda affected with this bug a lot, because i use a lot of electron build apps.
MasicoreLord commentedon Apr 21, 2017
I noticed it when I tried to launch Discord shortly after upgrading my system (so I searched the internet to find this bug, and within a day or two, sure enough, it was mentioned).
MarshallOfSound commentedon Apr 21, 2017
Seems like a simple enough fix if someone wants to take this one on. Basically just need to add another if condition to this workaround
electron/lib/browser/init.js
Line 166 in d064325
Something like:
I don't have a 17.04 VM and don't have the time rn to set one up, if someone with 17.04 can test that fix and PR it in (if it works) that would be great 👍
mfonville commentedon Apr 21, 2017
@MarshallOfSound I think the correct way to be actually check if any of the values in the variable, that are colon-separated, matches
Unityalso see https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1554878Addendum, so the problem is I think more in Chromium, that uses a
==comparison for the full string: https://src.chromium.org/viewvc/chrome/trunk/src/base/nix/xdg_util.cc?r1=147134&r2=147133&pathrev=147134MarshallOfSound commentedon Apr 21, 2017
@mfonville That seems more risky someone who is a lot more familiar with possible values for that environment variable should make that call. I don't want to come across a situation where someone has the env var set to something silly like
Unity:MyCustomBuildFrom2002and we try enable something that won't work 🤔IMO going the safe route is better unless someone can categorically say the above kind of situation won't happen
MasicoreLord commentedon Apr 24, 2017
I found another workaround, where you could use the original .desktop shortcuts.
Edit ~/.profile with this line added to the end:
It should work for about any application that stopped showing an indicator in Ubuntu 17.04 till this problem gets sorted.
Update: This workaround does break the System Settings in Ubuntu, so maybe continue editing the .desktop shortcuts.
6 remaining items
Merge pull request #9716 from dakira/fix-9046
caneraydinbey commentedon Jul 2, 2017
I have also this
I just installed 17.04 server and then desktop but I have only those icons (this is not actually my setting, but it is broken the same way)
[![https://i.stack.imgur.com/jCM8h.jpg][1]][1]
I tried these command in an attempt to solve it:
sudo apt-get install ubuntu-desktop
sudo apt-get remove unity-control-center
sudo apt-get install unity-control-center
sudo apt-get install ubuntu-desktop
sudo apt-get install unity-control-center
sudo apt-get install unity-control-center-signon gnome-control-center-unity
sudo apt-get update --fix-missing
sudo apt-get -f install
But I did not manage to solve it. Can you suggest any ways to solve my problem?
i reinstalled ubuntu desktop notihng changed sudo apt-get install --reinstall ubuntu-desktop 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
https://i.stack.imgur.com/jCM8h.jpg
I did this also
https://askubuntu.com/a/621874/694849
but it also added only one icon. online accounts.
They are lots of still missing icons like power.
When i write gnome-control -center, i t brings lots of icons but when i click for example display, console shows:
➜ ~ gnome-control-center
** (gnome-control-center:11997): WARNING **: Ignoring launcher gufw (missing desktop file)
** (gnome-control-center:11997): WARNING **: Ignoring launcher landscape-client-settings (missing desktop file)
** (gnome-control-center:11997): WARNING **: Ignoring launcher ubuntuone-installer (missing desktop file)
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunset data, using 16.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunrise data, using 8.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunset data, using 16.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunrise data, using 8.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunset data, using 16.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunrise data, using 8.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunset data, using 16.00
(gnome-control-center:11997): display-cc-panel-WARNING **: no sunrise data, using 8.00
And this did nothing
sudo apt-get install unity-control-center-signon gnome-control-center-unity
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'unity-control-center' instead of 'gnome-control-center-unity'
unity-control-center is already the newest version (15.04.0+17.04.20170402.6-0ubuntu1).
unity-control-center-signon is already the newest version (0.1.9+16.10.20160825-0ubuntu1).
The following packages were automatically installed and are no longer required:
linux-headers-4.10.0-22 linux-headers-4.10.0-22-generic
linux-image-4.10.0-22-generic linux-image-extra-4.10.0-22-generic
linux-signed-image-4.10.0-22-generic
Use 'sudo apt autoremove' to remove them.
Also this did not do anything
sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity
sudo shutdown -r now
see
➜ ~ sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity
Hit:1 http://repo.steampowered.com/steam precise InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://ppa.launchpad.net/embrosyn/cinnamon/ubuntu zesty InRelease
Hit:4 http://repository.spotify.com stable InRelease
Hit:5 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu zesty InRelease
Hit:6 http://dl.google.com/linux/chrome/deb stable Release
Hit:7 http://us.archive.ubuntu.com/ubuntu zesty InRelease
Hit:8 https://deb.nodesource.com/node_6.x yakkety InRelease
Hit:9 http://ppa.launchpad.net/papirus/papirus/ubuntu zesty InRelease
Hit:10 https://download.docker.com/linux/ubuntu zesty InRelease
Hit:11 http://ppa.launchpad.net/webupd8team/java/ubuntu zesty InRelease
Hit:12 https://packages.microsoft.com/repos/vscode stable InRelease
Get:14 http://us.archive.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]
Ign:15 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 InRelease
Hit:16 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release
Get:18 http://us.archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu zesty-security/main amd64 DEP-11 Metadata [5,812 B]
Get:20 http://us.archive.ubuntu.com/ubuntu zesty-security/universe amd64 DEP-11 Metadata [8,904 B]
Get:21 http://us.archive.ubuntu.com/ubuntu zesty-security/universe DEP-11 64x64 Icons [27.0 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu zesty-updates/main amd64 DEP-11 Metadata [41.8 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu zesty-updates/main DEP-11 64x64 Icons [14.0 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe amd64 DEP-11 Metadata [57.5 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu zesty-updates/universe DEP-11 64x64 Icons [58.7 kB]
Fetched 392 kB in 1s (228 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.10.0-22 linux-headers-4.10.0-22-generic
linux-image-4.10.0-22-generic linux-image-extra-4.10.0-22-generic
linux-signed-image-4.10.0-22-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/3,612 B of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 356900 files and directories currently installed.)
Preparing to unpack .../ubuntu-desktop_1.379_amd64.deb ...
Unpacking ubuntu-desktop (1.379) over (1.379) ...
Setting up ubuntu-desktop (1.379) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
unity is already the newest version (7.5.0+17.04.20170407.1-0ubuntu1).
The following packages were automatically installed and are no longer required:
linux-headers-4.10.0-22 linux-headers-4.10.0-22-generic
linux-image-4.10.0-22-generic linux-image-extra-4.10.0-22-generic
linux-signed-image-4.10.0-22-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
gmribas commentedon Jul 17, 2017
This workaround works for me:
http://www.dangtrinh.com/2017/04/fix-slacks-icon-tray-missing-in-ubuntu.html
MEGApixel23 commentedon Aug 1, 2017
Any updates on this? Is this bug going to be fixed in the nearest future?
Thanks.
ivan-pinatti commentedon Oct 3, 2017
The information on the link that @gmribas shared solved the issue.
MEGApixel23 commentedon Oct 4, 2017
@ivan-pinatti Mentioned post looks like a workaround rather than resolving an issue. But you are right - it works.
mcg commentedon Oct 4, 2017
Of course this issue is different on Ubuntu 17.10 where we have GNOME now and Ubuntu is using it's own Indicator GNOME extension and current Electron apps are not able to show an icon.
ldartez commentedon Oct 10, 2017
@gmribas's workaround does not work for me. It has virtually no effect. The option to leave the linux app running on the system tray seems to be completely ignored. Notifications work when I manually test it, but none ever show up from actual messages. :(
I am using Slack version 2.8.1 .deb
whitethunder commentedon Apr 30, 2018
In 17.10 and above, @gmribas's link works if I edit this file:
~/.local/share/applications/slack.desktopChanging the
Execline to read:Exec=env XDG_CURRENT_DESKTOP=Unity /usr/lib/slack/slackdamianobarbati commentedon Aug 3, 2018
@whitethunder do you have your app tray icon working on Linux (appimage)? I can't see anything.
jayarjo commentedon May 19, 2019
Neither do I.
XDG_CURRENT_DESKTOPis set toUnityin my Ubuntu 18.04 - I can see it when I echo it in the console, and still - indicators are missing.Botono commentedon Dec 22, 2019
The
XDG_CURRENT_DESKTOP=Unityfix does not work for me with some apps in Ubuntu 18.04. Slack's icon appears, but not Plexamp.jayarjo commentedon Dec 24, 2019
@Botono do you fulfill the following requirement?
jenciso commentedon Mar 16, 2024
I had this problem in Ubuntu 22.04 and Unity 7 in the new slacks version. I was able to resolve the issue using the same workaround.
echo "XDG_CURRENT_DESKTOP=Unity7" >> ~/.profile