Submitted by Admin on

Version 4.51.191 of Slack was build with the buggy version of Electron which prevent the icon to be shown in system tray.

PR is here https://github.com/electron/electron/pull/52952

The issue was fixed in Electron/43.4.1.

better to downgrade a bit and update slakc with the new version only.

sudo apt install slack-desktop=4.51.180

also here's the link with the number of the new slack version

https://gist.github.com/felixrieseberg/7f3e89bb7b00418fb6d9c474774eba5a/revisions

And the link to the fix in Chromium

https://chromium-review.googlesource.com/c/chromium/src/+/8189930/6/chrome/browser/ui/views/status_icons/status_icon_linux_dbus.cc

One of the solutions I found so far was to install deprecated xfce4-indicator-plugin. Add it to the panel, start slack, then restart the panel and the icon will appear. Very interesting.

xfce4-panel -r

Also trying to find where the issue is a lot of commands were executed...

user@user-VirtualBox:~/Downloads$ dbus-send --session --dest=org.kde.StatusNotifierWatcher --type=method_call --print-reply /StatusNotifierWatcher org.freedesktop.DBus.Properties.Get string:org.kde.StatusNotifierWatcher string:RegisteredStatusNotifierItems
method return time=1787675595.285719 sender=:1.169 -> destination=:1.186 serial=147 reply_serial=2
   variant       array [
         string ":1.48/org/ayatana/NotificationItem/software_update_available"
         string "org.freedesktop.StatusNotifierItem-16593-1/StatusNotifierItem"
         string ":1.53/org/ayatana/NotificationItem/nm_applet"
         string ":1.48/org/ayatana/NotificationItem/unattended_upgrade"
]

The failure chain:

Slack registers SNI
        ↓
Xfce systray calls D-Bus Properties.GetAll()
        ↓
Slack returns:
org.freedesktop.DBus.Error.Failed: error occurred in GetAll
        ↓
sn-item.c:699 treats it as fatal
        ↓
item is discarded
        ↓
no tray icon

One of the solutions from the gitlab didn't helped also: systray and indicator plugins conflict. Uninstall xfce4-indicator-plugin and ayatana-indicator-application, and it should work. https://gitlab.xfce.org/xfce/xfce4-panel/-/work_items/984

Slack Linux releases: https://slack.com/release-notes/linux

To debug xfce4-panel use:

PANEL_DEBUG=1 xfce4-panel

btw this slack version show these logs

on open:
xfce4-panel(systray): ../plugins/systray/sn-item.c:699: Fatal error for item '(null)': (domain 'g-dbus-error-quark', code 0) GDBus.Error:org.freedesktop.DBus.Error.Failed: error occurred in GetAll

on close:
xfce4-panel(systray): ../plugins/systray/sn-item.c:419: Finishing on error for item '(null)'

Check all xfce4 panels plugins here: https://gitlab.xfce.org/panel-plugins