(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:
http://glx-dock.org/ww_page.php?p=Recurrents%20problems&lang=en#29-Icons%20are%20corrupted%20after%20waking%20up%20from%20sleep%20mode

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:

[/color][/font]

dbus-send --session --dest=org.cairodock.CairoDock /org/cair odock/CairoDock org.cairodock.CairoDock.Reboot
[font=monospace]
Now I’ve tried adding it to:
/etc/pm/sleep.d/10_cairo-dock
and when it failed to work to:
/lib/systemd/system-sleep/10_cairo-dock
as
[/font]

#!/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!