kwrite(12926): Session bus not found
To circumvent this problem try the following command (with Linux and bash)
export $(dbus-launch)
KCrash: Application 'kwrite' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/root/.kde4/socket-localhost/kdeinit4__0
[1]+ Stopped kwrite /etc/X11/xorg.conf
So that the file will open the dbus command has to be run everytime.
I have tried running other files and get the same error message