they do not have the DISPLAY variable initialized and do not have the > appropriate session Xauthority cookies set.
I have tried this also with:
DISPLAY=":0.0"
HOME=/home/antoniotrkdz
XAUTHORITY=$HOME/.Xauthority
export DISPLAY XAUTHORITY HOME
in the script, I don't know if they are correct, however it didn't work.