I get the above error message when I try to run some programs in ssh -X
xterm works fine. But when I do gedit, I get the above error. If I do sudo gedit, then the program runs without the error.
xyes, gnome-calculator, chromium-browser also works. I did a little investigation online, but they usually try to get some X program running. The problem I face is that some programs need me to do sudo in order to make them run. I was wondering why this is required.
EDIT: I killed all gedit on the system, and tried the command again, this time I get:
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See
http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Error connecting: Connection refused)