I discovered that root is handed a definition of the environment variable XAUTHORITY that points to a non-existent directory:
root@login:~# echo $XAUTHORITY
/tmp/libgksu-OgwC1o/.Xauthority
root@login:~# ls $XAUTHORITY
ls: cannot access /tmp/libgksu-OgwC1o/.Xauthority: No such file or directory
This makes it impossible to run any GUI-based program as root.
I worked around this by adding the following to root's .bashrc file:
Yes, I just found a workaround yesterday.
I discovered that root is handed a definition of the environment variable XAUTHORITY that points to a non-existent directory:
root@login:~# echo $XAUTHORITY libgksu- OgwC1o/ .Xauthority OgwC1o/ .Xauthority: No such file or directory
/tmp/
root@login:~# ls $XAUTHORITY
ls: cannot access /tmp/libgksu-
This makes it impossible to run any GUI-based program as root.
I worked around this by adding the following to root's .bashrc file:
export XAUTHORITY= ~/.Xauthority myhome> /.Xauthority $XAUTHORITY
cp /home/<
It would appear that libgksu is the source of this problem.