You are not logged in.
Pages: 1
Topic closed
Ever since I upgraded my KDE Sc to 4.5.0 (KDEmod) I've been getting this warning when launching vim with sudo or as root (via doing su - first). As far as I understand from older threads dating back to 2008. It has to do with vim trying to connect to the X server. How can I fix this warning permanently and has it appeared just now?
Last edited by fettouhi (2010-08-29 07:29:22)
Offline
I finally found a solution to the problem:
I put the following line in my root users .bashrc script
export XAUTHORITY=/home/<user>/.Xauthority
then I copied .Xauthority to root also, i.e.
sudo cp ~/.Xauthority /root
and now the warning is gone.
Offline
You can use the -E switch to keep environment variables in sudo, or just use gksudo for all graphical apps.
Offline
You mean by running vim via
vim -E ...
?
Offline
man sudo
Offline
Have the same problem, this command fix it
sudo xhost +local:root
Offline
Don't
a) necrobump
b) to a solved thread and
c) especially not with such ill-advising rubbish.
Whenever you've xauthority issues, xhost, especially to grant root access, is NOT THE ANSWER.
Offline
What seth said.
Seriously don't bump 7 year old threads. -- https://wiki.archlinux.org/index.php/Co … bumping.22
Closing.
Offline
Pages: 1
Topic closed