if something only works with sudo you probably messed up some permissions
if you had to use root you probally should have used gksudo
to fox permissions
Code:
sudo chown -r $USER:$USER ~/
and change your quote tags to code tags