Page 1 of 1

[SOLVED] Kwrite crash

PostPosted: Jun 12th, '11, 11:27
by phil66
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

Re: Kwrite crash

PostPosted: Jun 12th, '11, 14:46
by doktor5000
You can't run KDE apps easily as root, because that's what you are trying to do.
Use another editor for that, like mcedit (of Midnight Commander) on a terminal.

Re: Kwrite crash

PostPosted: Jun 12th, '11, 15:25
by sumski
before you try to run gui apps as root type this as user:
Code: Select all
xhost +

Re: Kwrite crash

PostPosted: Jun 12th, '11, 17:23
by doktor5000
This has nothing to do with X access controls, but with the fact the there is no dbus session running for the root user.
You see that above in the error message in the first line: "Session bus not found [...]" and kdeinit is not running for the root user.

One could try running it with kdesu, by doing it like this:
Code: Select all
/usr/lib/kde4/libexec/kdesu kwrite

Re: Kwrite crash

PostPosted: Jun 12th, '11, 17:54
by Ken-Bergen
In a konsole use
Code: Select all
su -
for a full root environment.
Code: Select all
kwrite
will then work as expected.

Re: Kwrite crash

PostPosted: Jun 13th, '11, 03:02
by phil66
Ken

The su - and kwrite works properly with no dbus-launch error

Thanks for the reply and the help

Re: [Solved] Kwrite crash

PostPosted: Jun 13th, '11, 11:22
by maat
Marking as solved :)