I am using KDE and I always log in as a user. However, there are times when I must run my editor Quanta as root (so that I can directly save files in the /var/www
folder rather than go through the trouble of saving them in /home/hari
and then copying them to /var/www
For this I always used to run su
from a terminal window and then run the application.
After quite a while now, I again tried to run Quanta as root.
I get this error:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
quanta: cannot connect to X server :0.0
What could be the reason for this sudden problem? I changed no config files as far as I know and I am in KDE.
This may have something to do with upgrading su and the config file. If anybody knows how to fix this, I would be grateful for an answer.