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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
32,560 次查看
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.

标签 (1)
0 项奖励
回复
1 解答
31,016 次查看
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 项奖励
回复
2 回复数
31,017 次查看
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 项奖励
回复
31,016 次查看
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 项奖励
回复