After changing hostname, gedit (and other X clients) don't open

Viewed 12011

After changing the hostname gedit is not working as expected, it shows error always in my root "No protocol specified"

** (gedit:23330): WARNING **: Could not open X display
No protocol specified
Cannot open display: 
Run 'gedit --help' to 
4 Answers
Related