8

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?

2 Answers 2

6
+50

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&
    fi
  done

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

enter image description here

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

5
-1
killall unity-panel-service
/usr/lib/x86_64-linux-gnu/unity/unity-panel-service&

solves it to me, but I'm too lazy to get where to put it for autorestart on waking up. At least we know who is in charge for this :-)

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .