Thanks General Failure your command did not work but you put me on the right track,
sudo chown -hR home/[user]/.ICEauthority
did the trick.
I think jay73 is on the right track too, I had used sudo to install the latest nvidia driver. That could have been responsible.
Thanks to you both.