Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is dbus daemon and why vlc needs it

I have cross-compiled VLC (version 2.1.2) media player using buildroot for an arm board. I have connected the board to my linux PC using serial cable. When I try to run the player using "vlc" command in minicom, which is located in /usr/bin of my root filesystem. I get the following error:

inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

Can anyone please clarify what this error means and also can any one please tell me what is a dbus and why it is required for my VLC player.

Thanks for any help.

like image 865
Hugh Avatar asked Feb 07 '14 07:02

Hugh


People also ask

What is the use of dbus-daemon?

D-Bus is first a library that provides one-to-one communication between any two applications; dbus-daemon is an application that uses this library to implement a message bus daemon. Multiple programs connect to the message bus daemon and can exchange messages with one another.

What is Linux dbus-daemon?

dbus-daemon defines a different bus address for every bus instance it provides. These addresses are defined in the daemon's configuration files. Two processes can use a D-Bus connection to exchange messages directly between them, but this is not the way in which D-Bus is normally intended to be used.

Where are Dbus Service files?

As with session services, the first directory listed has highest precedence. On Unix, the standard system service directories are: /usr/local/share/dbus-1/system-services: this location is specified by the D-Bus Specification, and is suitable for software installed locally by the system administrator.

What is Dbus session?

DESCRIPTION. dbus-run-session is used to start a session bus instance of dbus-daemon from a shell script, and start a specified program in that session. The dbus-daemon will run for as long as the program does, after which it will terminate.


1 Answers

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

export DISPLAY=:0
startx &

then run vlc

vlc

This way I got rid of this error.

like image 128
Hugh Avatar answered Sep 21 '22 17:09

Hugh