[SOLVED] Kwrite crash

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Kwrite crash

Postby phil66 » Jun 12th, '11, 11:27

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
User avatar
phil66
 
Posts: 44
Joined: Jun 11th, '11, 19:50
Location: Texas

Re: Kwrite crash

Postby doktor5000 » Jun 12th, '11, 14:46

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18048
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Kwrite crash

Postby sumski » Jun 12th, '11, 15:25

before you try to run gui apps as root type this as user:
Code: Select all
xhost +
sumski
 
Posts: 8
Joined: Jun 3rd, '11, 08:03
Location: Zagreb, Croatia

Re: Kwrite crash

Postby doktor5000 » Jun 12th, '11, 17:23

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18048
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Kwrite crash

Postby Ken-Bergen » Jun 12th, '11, 17:54

In a konsole use
Code: Select all
su -
for a full root environment.
Code: Select all
kwrite
will then work as expected.
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: Kwrite crash

Postby phil66 » Jun 13th, '11, 03:02

Ken

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

Thanks for the reply and the help
User avatar
phil66
 
Posts: 44
Joined: Jun 11th, '11, 19:50
Location: Texas

Re: [Solved] Kwrite crash

Postby maat » Jun 13th, '11, 11:22

Marking as solved :)
maat
 
Posts: 307
Joined: Feb 13th, '11, 00:23


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron