Indeed when an SSH session is open, it doesn't launch a dbus session. Some programs may launch it, but then the session doesn't know about it (hence can't close it).
Not knowing about the dbus session also means that programs thzat use dbus but don't launch it themselves will have problems.
dbus sections are per machine and per X11 display. Their info is stored in $HOME/.dbus/session-bus/- however, the process referenced there may be closed, so an extra check is needed to determine if launching dbus is needed or not. Then, the variables there are to ber exported to the session.
Then it works like a charm :)
I put the following in my .bash_profile file:
notes: hostnamectl is part of systemd and allows to retrieve the machine-id the dbus-launch displays the variables we want; by using
export $(dbus-launch) we retrieve the output of dbus-launch and export the variables |
Thursday, 14 May 2015
dbus on beaglebone
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment