<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Aug 13, 2018 at 3:37 PM Deepan  Muthusamy <<a href="mailto:deepan.muthusamy@tcs.com">deepan.muthusamy@tcs.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
My application has to communicate to both system dbus and session dbus and I want to start my application through systemd. How to do that?<br></blockquote><div><br></div><div>Everything can use the system bus, but only applications belonging to the session can use the session bus. Trying to access user sessions from within a system service is somewhat contradictory (is it a system service *or* is it a desktop app?). It *is* technically possible but you need a really good reason as well as to consider that there can be more than one session, less than one session, that sessions can appear and disappear at any time... The only common exception are tightly integrated embedded distros, where exactly one permanent session exists.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>