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
/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:
export XAUTHORITY=~/.Xauthority
cp /home/<myhome>/.Xauthority $XAUTHORITY
It would appear that libgksu is the source of this problem.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1449748
Title:
gedit can't run in root terminal
To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1449748/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs