Kwrite dont open through Konsole

I am trying to edit some configurtion files like /etc/fstab ,so i entered i changed it to su in Konsole and enter kwrite /etc/fstab but they Kwrite doesnt open.
Even with Normal user it doesnt open.

I tries Kate but it gives the rror “kate: cannot connect to X server”

Try Alt+F2 then ‘kdesu kwrite’.

Worked for me…thanks a lot.


This also should work but your mileage may vary:

$ su

kwrite 2>/dev/null &