[systemd-devel] Access session bus from service application

Mantas Mikulėnas grawity at gmail.com
Tue Aug 14 09:51:50 UTC 2018


On Tue, Aug 14, 2018 at 11:49 AM deepan muthusamy <deepan.m2903 at gmail.com>
wrote:

> I have to start all my applications through systemd. But when I am trying
> to start even A2, A3, A4 also i am facing same problem.
>

Sounds like you *don't have* a session bus at all, then?

If 100% of your applications start via systemd .services, then you should
start the bus via systemd .service as well. (For example, create a
"dbus-session.service"; make sure to specify a static --address. Ideally
create a matching .socket unit as well.)

Once the session bus is running, your other programs/services need to be
told about its address (via environment variables).

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180814/cab0538c/attachment.html>


More information about the systemd-devel mailing list