Zulip-desktop: Tray Icon disappears on Screen Lock & Unlock

Created on 31 Mar 2020  路  19Comments  路  Source: zulip/zulip-desktop

  • Operating System:

    • [ ] Windows

    • [x] Linux/Ubuntu

    • [ ] macOS

I'm on Ubuntu Focal (GNOME Shell 3.36.0).

When running the desktop app on the latest master, the tray icon seems to disappear when I lock my screen and unlock it. Hard reloading the app seems to restore it. CZO discussion here.

All 19 comments

This seems to be an upstream problem that affects all applications, so there probably isn鈥檛 anything we can do. See ubuntu/gnome-shell-extension-appindicator#75.

Same here, tray icon has just gone

OS: Debian Buster
Window manager: i3wm + polybar

Same here, tray icon is gone since I updated the desktop app to version 5.0.0.

OS: Xubuntu 18.04.3
WM: XFCE

I solved this with this code:

  if (os.platform() !== 'linux') return

  const monit = exec(`
    dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver'" |
    while read x; do
      case "$x" in 
        *"boolean true"*) echo SCREEN_LOCKED;;
        *"boolean false"*) echo SCREEN_UNLOCKED;;  
      esac
    done
  `)

  monit.stdout.on('data', (data) => {
    const out = data.toString().trim()
    if (out === 'SCREEN_UNLOCKED') {
      tray.destroy()
      createTray()
    }
  })

You can see more about this in my repo https://github.com/dotenorio/clipboard-manager-electron/ on lib/create_window.js line 350

As described in comment https://github.com/electron/electron/issues/21445#issuecomment-565061274 I can confirm it is working with xfce4-statusnotifier-plugin in Xubuntu 18.04

On KDE Plasma, using the Flatpak, I never see any tray icon at all on these two systems (i.e. not even right after start of the application, which is a problem if startMinimized=true in ~/.config/Zulip/config/settings.json):

Operating System: Gentoo Linux 
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Kernel Version: 5.5.14
OS Type: 64-bit
Operating System: Fedora 31
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.67.0
Qt Version: 5.13.2
Kernel Version: 5.5.13-200.fc31.x86_64
OS Type: 64-bit

See-Also: https://github.com/flathub/org.zulip.Zulip/issues/18

Hi!
Since 5.0.0 was released (19 days ago) the tray icon is completely missing. If my understanding is correct this is not directly related to zulip but to electron https://github.com/electron/electron/issues/21445.

I have tried to revert to 4.0.3 version but this seems to be impossible, I have also looked for beta releases following https://zulipchat.com/help/desktop-app-install-guide#install-a-beta-release.

So my only solution for now is to use the browser version or to live without tray icon and the notification counter...

Does anybody has a workaround to share with me? Building a version from source is an option I could consider of course!

Regards,
Faustin

Side note: my issue is not exactly this one (tray icon is totally missing), should I open a new issue?

@fauust please file a new bug with detailed info (Linux distro, app installer type etc).

Side note: my issue is not exactly this one (tray icon is totally missing), should I open a new issue?

@fauust please file a new bug with detailed info (Linux distro, app installer type etc).

@fauust Please link it here afterwards, since I am having the exact same issue.

See-Also: https://github.com/zulip/zulip-desktop/issues/910#issuecomment-609930694
See-Also: https://github.com/flathub/org.zulip.Zulip/issues/18

@punchagan A chromium bug was created for this
https://bugs.chromium.org/p/chromium/issues/detail?id=1042098 .
There is also a Gnome level issue at https://github.com/ubuntu/gnome-shell-extension-appindicator/issues/220

I guess we have to wait for this to be fixed upstream. Till then one may build out of the hack of #922 if necessary.

Till then one may build out of the hack of #922 if necessary.

I think it is worth doing the hackish fix.

Electron is restoring to the original way of implementation for tray icon, so that should fix this issue for us. https://github.com/electron/electron/pull/23674

@punchagan Can you test on the latest release? Electron has restored to the original way of implementation so this should be fixed in the older release.

Latest version working again, see https://github.com/zulip/zulip-desktop/issues/936#issuecomment-649344282

My setup:

  • debian 10
  • i3wm
  • polybar

@punchagan Can you test on the latest release?

I see the icon now, but I don't see the correct icon. I see ellipsis being shown instead of the Zulip logo. :see_no_evil:

image

I see the icon now, but I don't see the correct icon. I see ellipsis being shown instead of the Zulip logo. see_no_evil

This was when I was running from source. The snap shows the icon correctly. Just adding a note for completeness.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zingmars picture zingmars  路  11Comments

timabbott picture timabbott  路  6Comments

vsvipul picture vsvipul  路  11Comments

dylnuge picture dylnuge  路  5Comments

Mentalone picture Mentalone  路  10Comments