You are not logged in.
KWrite refuses to edit/open files when I tell it to through the terminal. I get the message below.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
kwrite: cannot connect to X server :0.0
Any ideas on how to fix this?
Offline
Are you trying to run it as root? If you want to use it to modify system config files, start it with:
$ kdesu kwrite
so it'll get proper X display permission.
Offline
Still doesn't work. Comes up with the same message.
Offline
I just realized that it works when I'm not root. Is there an explanation for this?
Offline
What works when you're not root: 'kwrite' or 'kdesu kwrite' ?
Offline
What works when you're not root: 'kwrite' or 'kdesu kwrite' ?
KWrite still doesn't work when I'm not root, but kdesu kwrite does.
Offline
as the user in which you are running x, do
xhost +localhost
su -c kwrite
Offline