(SOLVED) Suspend wake script help

[font=monospace][color=#000000]Hey folks!

I have nVidia and I use proprietary drivers, cairo-dock and I suspend my computer to RAM time to time. The problem is icons in cairo dock are getting corrupted upon wake. The bug is described:

Solution given to restart it via python script (on aforementioned link) or C program for some reason doesn’t work with me. Actually, python script does works. C program for some reason doesn’t.

Basically, what I want to do is to issue this code upon awakening:


dbus-send --session --dest=org.cairodock.CairoDock /org/cair odock/CairoDock org.cairodock.CairoDock.Reboot
Now I’ve tried adding it to:
and when it failed to work to:

#!/bin/bash case $1 in resume|thaw) dbus-send --session --dest=org.cairodock.CairoDock /org/cairodock/CairoDock org .cairodock.CairoDock.Reboot ;; esac

And it didn’t work. It is not getting executed for some reason. I did chmod +x on it, and I’ve tested that it fails to run (by using echo test >/tmp/test).

Any ideas what is wrong here?

Thank you!