<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-4">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>My application is a user created application which will interact with systemd to monitor other running process, so I have to connect to system dbus. At the same time My application has to communicate with other session applications, so Iam communicating
 using session bus.Also My application has to start at boot time by systemd. Is it possible? If possible what are all the changes I have to make?</p>
<p>My target board is rcar H3. My target os is yocto project with genivi meta ivi system. <br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
DEEPAN MUTHUSAMY,
<div>TATA CONSULTANCY SERVICE,</div>
<div>mobile no: +91 8012309210</div>
</div>
</div>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Mantas Mikulėnas <grawity@gmail.com><br>
<b>Sent:</b> Monday, August 13, 2018 7:13 PM<br>
<b>To:</b> Deepan Muthusamy<br>
<b>Cc:</b> Systemd<br>
<b>Subject:</b> Re: [systemd-devel] systemd service not connecting to session dbus</font>
<div> </div>
</div>
<div>
<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">
<div dir="ltr">Mantas Mikulėnas</div>
</div>
</div>
</div>
</div>
<p>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you</p>

<p></p></body>
</html>