This forum has been archived. All content is frozen. Please use KDE Discuss instead.

error : "Not connected to D-Bus server"

Tags: None
(comma "," separated)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
DBUS_SESSION_BUS_ADDRESS will be used by libdbus, which is in turn used by QtDBus which is then used by KLauncher.

Try running: export $DBUS_SESSION_BUS_ADDRESS right after the eval 'dbus-lau...' line.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
quux_qorge
Registered Member
Posts
13
Karma
0
OS
"export $DBUS_SESSION_BUS_ADDRESS" raises an error: "not a valid identifier". I've tried the following:

Code: Select all
export DBUS_SESSION_BUS_ADDRESS=${DBUS_SESSION_BUS_ADDRESS}

But I still have the Dbus error. I'll see if I can create a dbus connection with a sample program...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Oops. It was supposed to be:

Code: Select all
export DBUS_SESSION_BUS_ADDRESS


You can use "qdbus" for testing.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
quux_qorge
Registered Member
Posts
13
Karma
0
OS
Qt comes with a dbus sample project called "dbus-chat". I start the dbus daemon:
Code: Select all
$ dbus-daemon --config-file="${INSTALL_DIR}/share/dbus-1/session.conf" &
[1] 813
$ echo $DBUS_SESSION_BUS_ADDRESS
(noting outputted !!)
$ dbus-chat
Cannot connect to the D-Bus session bus.
Please check your system settings and try again.


This sounds like bad news. But then, I try this:
Code: Select all
dbus-launch --exit-with-session --config-file="${INSTALL_DIR}/share/dbus-1/session.conf" dbus-chat

And it works ! But starting krita or kdeinit4 the same way doesn't.

Oops. It was supposed to be:
Still the same "No DBUS session-bus found." error.

You can use "qdbus" for testing.
Thanks! There is also another app: "qdbusviewer". When I run it, I have this error:
Code: Select all
Error: Cannot connect to D-Bus: /Library/koffice/libdbus/dbus/bin/dbus-launch terminated abnormally with the following error: EOF in dbus-launch reading address from bus daemon
I have the same error with qdbus.

So now it sounds like a configuration problem.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately I do not know why this is occurring. Possibly you may need a patched copy of libdbus which is usable on Mac.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
quux_qorge
Registered Member
Posts
13
Karma
0
OS
Thanks a lot for all your help. I *think* there are a few adjustments I need to make in libdbus...
User avatar
quux_qorge
Registered Member
Posts
13
Karma
0
OS
I was wondering, does kdeinit4 needs both a system and session dbus daemon ? Until now I was launching only the session one. And as for now the system daemon won't run, but I'll try to fix that if it is required.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
It shouldn't need the system bus, as access to the system bus is not usually permitted from user applications.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan