desktop: Tray icon on Ubuntu is missing

I confirm (by marking “x” in the [ ] below: [x]):


Summary Tray icon on Ubuntu 17.10 is not shown

Steps to reproduce I’ve installed the mattermost client with the .deb package. Configured my server and then try to configure the client itself. But at both options, Light and Dark, the tray icon is not shown.

  • Operating System: Ubuntu 17.10 - 64 Bit - Kernel 4.13.0-38-generic
  • Mattermost Desktop App version: 4.0.1
  • Mattermost Server version: Mattermost Team Edition 4.7.1 (4.7.3) with postgres

Expected behavior Show the tray icon.

Observed behavior The fields trayIconTheme and showTrayIcon in the ~/.config/Mattermost/config.json are set correctly.

Config:

{
  "teams": [
    {
      "name": "xxx",
      "url": "https://xxx"
    }
  ],
  "showTrayIcon": true,
  "trayIconTheme": "dark",
  "version": 1,
  "minimizeToTray": true,
  "notifications": {
    "flashWindow": 2,
    "bounceIcon": false,
    "bounceIconType": "informational"
  },
  "showUnreadBadge": true,
  "useSpellChecker": true,
  "spellCheckerLocale": "de-DE"
}

Possible fixes -/-

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 21 (5 by maintainers)

Commits related to this issue

Most upvoted comments

That’s because Ubuntu 18.04 main repository removes ‘libgtk2-appindicator-perl’, a perl bindings for libappindicator that maybe Mattermost requires it for showing software icon in system tray.

workaround: sudo apt-get install libappindicator-dev

That works for me.

Confirmed not working in 18.04. No tray icon.

Reproduced on Ubuntu 18.04, MatterMost app 4.1.2, And MatterMost Server 4.8.0 (mysql) It seems like Electron issue facing in the Slack app as well.

Production step Setting up > “Show Icon in the notification area” and close setting page. Minimize the app. Lock the system Unlock the system

The v4.1.0 RC2 doesn’t fix the issue for all scenarios, e.g. communitheme (XDG_CURRENT_DESKTOP=ubuntu-communitheme:ubuntu:GNOME). The problem is in electron (see electron/lib/browser/init.js#L166).

The simplest workaround is to modify mattermost-desktop.desktop file to use correct value in XDG_CURRENT_DESKTOP enviroment variable. E.g.:

Exec=env XDG_CURRENT_DESKTOP=Unity /opt/Mattermost/mattermost-desktop