What is a dbus daemon and why does it need it?

I have a cross-compiled VLC media player (version 2.1.2) using buildroot for arm arm. I connected the board to my Linux computer using a serial cable. When I try to start the player using the "vlc" command in the minicomputer, which is located in / usr / bin of my root file system. I get the following error:

disable interface error: failed to connect to the D-Bus session daemon: / usr / bin / dbus-startup failed abnormally with the following error: Startup error: failed initialization of X11.

Someone can clarify what this error means, and also someone can tell me what dbus is and why it is required for my VLC player.

Thanks for any help.

+4
source share
2 answers

I am working on minimal rootfs based on buildroot. This error is resolved for me after I included the "twm" package in my rootfs. Then, after the board is up, I run the following commands on the terminal:

$ export DISPLAY =: 0

$ Startx &

then run vlc

$ VLC

Thus, I got rid of this error.

+2
source

Since you are saying that you have cross compiled vlc and dbus startup problems, I expect you to work with a minimal root fs.

Try this in your terminal before starting vlc:

$ export DISPLAY=:0

If you compiled dbus with x11 support, then the dbus start will succeed.

+1

Source: https://habr.com/ru/post/1525747/


All Articles