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,587件の閲覧回数
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,043件の閲覧回数
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,044件の閲覧回数
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,043件の閲覧回数
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 件の賞賛
返信