Posts: 35
Joined: Sun May 15, 2016 1:54 pm

DBus - can someone explain DBUS_SESSION_BUS_ADDRESS

Wed Jun 28, 2017 6:50 am

I am trying to control OMXPlayer by DBus much in the way the script does.

I have been able to successfully send dbus commands to OMXPlayer but only when I have the DBUS_SESSION_BUS_ADDRESS environment variable set. The python script seems to communicate with the OMXPlayer without setting these variables so there is a way around this but, I can't seem to find any explanation as to what the DBUS_SESSION_BUS_ADDRESS variable is needed for.

Does anyone out there undstand the dbus system on the Pi and why dbus-send needs the variable set for it to work?

Return to “C/C++”