Comment 9 for bug 1321713

Revision history for this message
justin (j-t-scarpelli) wrote :

I am running Xubuntu 14.04 XFCE4 and experiencing similar problems.
I fixed issue by creating a file called /etc/pm/sleep.d/20_docky and making it executable with:
sudo chmod ugo+x /etc/pm/sleep.d/20_docky

#!/bin/sh
case $1 in
  resume)
    USER=`who | grep ":0" | head -1 | cut -d" " -f1`
    USERHOME=/home/$USER
    export XAUTHORITY="$USERHOME/.Xauthority"
    export DISPLAY=":0"
    su $USER - -c "dbus-launch /usr/bin/docky >/dev/null" &
    exit 0;
    ;;
esac

So far, so good..