Cannot connect to X server as root

Cannot connect to X server as root

Whenever I try to run any X application as root, this happens:

root@penguin:~# scribus
No protocol specified
scribus: cannot connect to X server :0

If I run echo $XAUTHORITY on either root or the primary user it is empty, just returns an empty line.

Running ./Xauthority in either home directory:
-bash: ./Xauthority: No such file or directory

It also does not help to run xhost +localhost

相关内容