I log into my box as nonroot.
I type gvim or firefox in the command line and it launches OK. Here is where it gets strange. I log in as root for a while, then switch back to the nonroot account. I type gvim again, and comes up with the errors:
Code:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
E233: cannot open displayXlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
If I type firefox, the command line will act like it launched OK (which it shouldn't do without the "&". It just prompts me again and firefox never comes up.
Then if I switch to root again and try to launch either one, they'll work.
Any ideas? This has to be a common problem because this happens on my home machine, my laptop, and my work PC (unless I am configuring something wrong, and thinking I am doing it right).
thx,