Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

d-bus administration

I have created simple application using d-bus, it works on kubuntu but doesn't work on my embedded linux.

When I run a qt application it says: Not connected to D-Bus server

When I try to run dbus-monitor I got this error:

Failed to open connection to session bus: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch requested, but X11 support not compiled in. Cannot continue.

dbus-daemon process is running on my system but dbus-launch is not. I presume that dbus-launch have to be running because it run on my kubunutu.

Can any one suggest me anything?

Thanks

like image 698
Daniil Avatar asked Oct 10 '22 05:10

Daniil


1 Answers

I had the same problem, and I solved it like suggested here.

If you have a program named app, then what worked for me is this :

eval `dbus-launch --auto-syntax` ./app
like image 168
BЈовић Avatar answered Oct 15 '22 22:10

BЈовић