Re: Dbus error on ONL

Simon McVittie <smcv-ZGY8ohtN/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <20190226091342.GB20039@horizon>
On Mon, 18 Feb 2019 at 00:05:21 +0530, Shiva wrote:
> root@localhost:~/dbus_test# dbus-run-session ./dbus-server&
> [1] 16450

This starts a D-Bus session bus, and runs your server on it.

> root@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
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.