February 2008
Merge your ~/.Xauthority
with the ~/.Xauthority
of root:
sudo xauth merge ~user
/.Xauthority
Or for a more permanent solution:
Modify your ~/.bashrc
to contain the following:
export XAUTHORITY=~/.Xauthority
Modify your /etc/sudoers
to contain the following:
Defaults env_keep += "DISPLAY XAUTHORITY"