Skip to content

Indicator icon missing in Ubuntu 17.04 #9046

Closed

Description

@mcg
  • Electron version: multiple
  • Operating system: Ubuntu 17.04

Expected behavior

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.

Activity

  1. mcg commented on Mar 29, 2017

    @mcg
    Author
  2. Thomas101 commented on Apr 14, 2017

    @Thomas101
    Contributor

    We're seeing the same too :(

  3. mcg commented on Apr 14, 2017

    @mcg
    Author

    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.

  4. orschiro commented on Apr 15, 2017

    @orschiro

    The same for me. I switched from Unity to MATE and there the indicator icons as well as the legacy tray ones show up.

  5. MasicoreLord commented on Apr 16, 2017

    @MasicoreLord

    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.

  6. luispabon commented on Apr 19, 2017

    @luispabon
  7. Spurlos commented on Apr 21, 2017

    @Spurlos

    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.

  8. MasicoreLord commented on Apr 21, 2017

    @MasicoreLord

    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).

  9. MarshallOfSound commented on Apr 21, 2017

    @MarshallOfSound
    Member

    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

    if (process.platform === 'linux' && process.env.XDG_CURRENT_DESKTOP === 'Pantheon') {

    Something like:

    if (process.platform === 'linux' && ['Pantheon', 'Unity:Unity7'].indexOf(process.env.XDG_CURRENT_DESKTOP) !== -1) {
      process.env.XDG_CURRENT_DESKTOP = 'Unity'
    }

    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 👍

  10. mfonville commented on Apr 21, 2017

    @mfonville

    @MarshallOfSound I think the correct way to be actually check if any of the values in the variable, that are colon-separated, matches Unity also see https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1554878

    Addendum, 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=147134

  11. MarshallOfSound commented on Apr 21, 2017

    @MarshallOfSound
    Member

    @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

  12. MasicoreLord commented on Apr 24, 2017

    @MasicoreLord

    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.

  13. 6 remaining items

  14. added a commit that references this issue on Jun 9, 2017
    a6ea316
  15. caneraydinbey commented on Jul 2, 2017

    @caneraydinbey

    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.

  16. gmribas commented on Jul 17, 2017

    @gmribas
  17. MEGApixel23 commented on Aug 1, 2017

    @MEGApixel23

    Any updates on this? Is this bug going to be fixed in the nearest future?
    Thanks.

  18. ivan-pinatti commented on Oct 3, 2017

    @ivan-pinatti

    The information on the link that @gmribas shared solved the issue.

  19. MEGApixel23 commented on Oct 4, 2017

    @MEGApixel23

    @ivan-pinatti Mentioned post looks like a workaround rather than resolving an issue. But you are right - it works.

  20. mcg commented on Oct 4, 2017

    @mcg
    Author

    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.

  21. ldartez commented on Oct 10, 2017

    @ldartez

    @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

    
                .-/+oossssoo+/-.               louis@xi
            `:+ssssssssssssssssss+:`           --------
          -+ssssssssssssssssssyyssss+-         OS: Ubuntu 17.04 x86_64
        .ossssssssssssssssssdMMMNysssso.       Model: Blade 6.06
       /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 4.10.0-35-generic
      +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 2 hours, 29 mins
     /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 2222
    .ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 4.4.7
    +sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 1920x1080
    ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: Unity:Unity7
    ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Compiz
    +sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Ambiance
    .ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Ambiance [GTK2/3]
     /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Ubuntu-mono-dark [GTK2/3]
      +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: x-terminal-emul
       /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: Intel i7-7700HQ (8) @ 3.8GHz
        .ossssssssssssssssssdMMMNysssso.       GPU: Intel Kabylake GT2
          -+sssssssssssssssssyyyssss+-         GPU: NVIDIA GeForce GTX 1060 Mobile
            `:+ssssssssssssssssss+:`           Memory: 4577MiB / 15932MiB
                .-/+oossssoo+/-.
    
  22. whitethunder commented on Apr 30, 2018

    @whitethunder

    In 17.10 and above, @gmribas's link works if I edit this file:

    ~/.local/share/applications/slack.desktop

    Changing the Exec line to read:

    Exec=env XDG_CURRENT_DESKTOP=Unity /usr/lib/slack/slack

  23. damianobarbati commented on Aug 3, 2018

    @damianobarbati

    @whitethunder do you have your app tray icon working on Linux (appimage)? I can't see anything.

  24. jayarjo commented on May 19, 2019

    @jayarjo

    Neither do I. XDG_CURRENT_DESKTOP is set to Unity in my Ubuntu 18.04 - I can see it when I echo it in the console, and still - indicators are missing.

  25. Botono commented on Dec 22, 2019

    @Botono

    The XDG_CURRENT_DESKTOP=Unity fix does not work for me with some apps in Ubuntu 18.04. Slack's icon appears, but not Plexamp.

  26. jayarjo commented on Dec 24, 2019

    @jayarjo

    @Botono do you fulfill the following requirement?

    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.

  27. jenciso commented on Mar 16, 2024

    @jenciso

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions