Failed to open connection to "session" message bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Failed to open connection to "session" message bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

Jump to solution
25,867 Views
jiye
Contributor V

I have a 4.19 linux ubuntu distro running on my LS1021-TWR evaluation kit and I am trying to make the dbus works on the device.

I really do not think this is dependent on what boards I am using 


However, I have encountered the following error which I could not figure out:

Failed to open connection to "session" message bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

I found something that says about this issue but I still do not have any clues about the cause.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690530

Hope someone can help.

Labels (1)
0 Kudos
1 Solution
24,323 Views
b36401
NXP Employee
NXP Employee

Such error message means that you need to assign a display to the application.
I mean you need to perform something like "export DISPLAY=:0" prior to running it.

View solution in original post

0 Kudos
2 Replies
24,324 Views
b36401
NXP Employee
NXP Employee

Such error message means that you need to assign a display to the application.
I mean you need to perform something like "export DISPLAY=:0" prior to running it.

0 Kudos
24,323 Views
jiye
Contributor V

I fixed it by performed the following commands on the command line:

(1)DISPLAY=":0" DBUS_SESSION_BUS_ADDRESS="unix:path=/run/dbus/system_bus_socket"

(2)export DBUS_SESSION_BUS_ADDRESS

but later on:

when I ran dbus on this device I always encountered this error below: any one knows why?

 

 

$2 = (gchar *) 0xb2c05668 "GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.byos.server was not provided by any .service files"

 

this is the debug statement from the gdb

0 Kudos