Dbus error on ONL
Simon McVittie
smcv at collabora.com
Tue Feb 26 09:13:42 UTC 2019
On Mon, 18 Feb 2019 at 00:05:21 +0530, Shiva wrote:
> root at localhost:~/dbus_test# dbus-run-session ./dbus-server&
> [1] 16450
This starts a D-Bus session bus, and runs your server on it.
> root at localhost:~/dbus_test# dbus-run-session ./dbus-client
This starts a *separate* D-Bus session bus, and runs your client on it.
If you want the server and client to communicate, they need to be using
the same bus.
If your device has a concept of login sessions, like you'd see on a laptop
or desktop computer with Debian, Fedora or similar, then your OS should
arrange for a D-Bus session bus to be started for each uid that is
logged in (this is easiest to do by using the systemd user service and
systemd-logind, like the dbus-user-session package in Debian), or a D-Bus
session bus for each X11 display (using dbus-launch, like the dbus-x11
package in Debian), or something similar.
If you are working on an embedded device that doesn't really have login
sessions, then it is probably more appropriate to use the system bus,
which is normally started during boot by systemd, Upstart, sysvinit or
a similar init system.
smcv
More information about the dbus
mailing list