I am trying to control OMXPlayer by DBus much in the way the dbuscontrol.sh 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 TBOPlayer.py 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?