Comment 0 for bug 1643996

Revision history for this message
Eduardo (ludentico) wrote : Missing tray icons after lock/suspend

** Expected behavior **
Tray icons to be reloaded/recreated/redrawn after lock

** What happens **

Some tray icons are missing

In 16.10, some tray icons are missing after lock. They don't disappear if the screen is only turned off. It happened as soon as I upgraded from 16.04.

So far, I can confirm this behavior on Clementine, Radio Tray, ownCloud client, Seafile and QOwnNotes. It doesn't matter if there is only running one of the aforementioned instances. The missing tray icons are recreated whenever I quit or start one of the affected programs (Clementine, Radio Tray, ownCloud-client, Seafile or QOwnNotes).

NOT affected by this bug:
* Transmission-gtk and Transmission-qt
* Telegram
* Diodon
* Solaar
* My-weather-indicator
* Psensor
* Multiload-ng

As a workaround, I wrote a small script that loads radiotray and kills it:

------------------------------
#!/bin/bash

dbus-monitor --session "type=signal,interface=com.canonical.Unity.Session,member=Unlocked" |
  while read MSG; do
    LOCK_STAT=`echo $MSG | awk '{print $NF}'`
    if [[ "$LOCK_STAT" == "member=Unlocked" ]]; then
 /usr/bin/radiotray &
 sleep .5
 killall radiotray
    fi
  done
------------------------------

** Release **
Ubuntu 16.10

** Kernel **
4.8.0-27-generic #29-Ubuntu

** Unity **
7.5.0

** Lightdm **
1.19.5

** Indicator packages **
indicator-application -- 12.10.1+15.04.20150128-0ubuntu1
indicator-application-gtk2 -- 12.10.0.1-0ubuntu3 (Installed to test if it solved the issue)
libappindicator1 -- 12.10.1+16.10.20160905-0ubuntu1 (Installed to test if it solved the issue)
libappindicator3-1 -- 2.10.1+16.10.20160905-0ubuntu1
libindicator3-7 -- 16.10.0+16.10.20160913-0ubuntu1
libindicator7 -- 16.10.0+16.10.20160913-0ubuntu1
sni-qt -- 0.2.7+15.10.20150729-0ubuntu1
python-appindicator -- 12.10.1+16.10.20160905-0ubuntu1
appmenu-qt -- 0.2.7+14.04.20140305-0ubuntu2
appmenu-qt5 -- 0.3.0+16.10.20160628.1-0ubuntu2~2
indicator-appmenu -- 15.02.0+16.10.20160927-0ubuntu1