Title: Status bar icon indicators disappear when waking from suspend
Tags: unity;suspend;icons;16.10
Question: So, when I wake up from suspend, this happens:



The missing icons are Skype and Mega. When I close one of those programs, the other icon appear, like this:



How can I fix this or make a script that refreshes the status bar?


Here is the accepted answer: As a temporary solutions until the bug is fixed, you can create a file f.e. icons.sh (dont't forget to give it execution rights with chmod +x) at any location:

```#!/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
        killall unity-panel-service
        /usr/lib/x86_64-linux-gnu/unity/unity-panel-service&amp;
    fi
  done
```

After saving the script, open Ubuntu Startup Applications from Apps menu and configure this script to run after you login: 



Every time you unlock the screen, unity panel service will be automatically killed and started, keeping your icons in place. 

Comment for this answer: @SergeiMorozov It took some searching, but it appears that this is being tracked as https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1628383
Comment for this answer: If this is fixed, it isn't in yakkety stable (or whatever it should be called) yet. I'm on 16.10/yakkety with latest updates, and I still have the problem.
Comment for this answer: Works for me as well, thank you. Is this bug filed anywhere so that one could track its progress?
Comment for this answer: @joelittlejohn, thanks. From here https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1635625, it looks the issue has just been fixed in yakkety.
Comment for this answer: *Excellent* answer!  +10 now and tomorrow +50!!!


{'source': 'StackExchangeDataset', 'subset': 'askubuntu.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2016:00:10/24/16', 'FavoriteCount': 4.0, 'PostTypeId': 1, 'Tags': '<unity><suspend><icons><16.10>', 'Title': 'Status bar icon indicators disappear when waking from suspend', 'ViewCount': 875, 'id': 841378, 'user_AboutMe': '', 'user_AccountId': 3296328.0, 'user_DisplayName': 'Dusan Milosevic', 'user_Reputation': 1922.0, 'user_Views': 892.0, 'user_id': 292567.0}}