<font color='black' size='2' face='arial'>

<div> <font size="2">I don't understand why the dbus developers would want to prevent cron or sudo for a user from being able to interact with dbus-enabled applications for that user.<br>
<br>
All I want to do is set user Louise's Pidgin instant messenger status to "offline" using purple-remote immediately prior to suspending the computer. If I don't do this, the instant messenger handle will appear online to my buddies even though I will no longer be connected -- for an indefinite period of time which spans a period of minutes in which any messages sent to me are irrecoverable, and worst of all, anyone who sends an instant message to me during this period is given no indication that their message will never be received.<br>
<br>
I will appreciate any further assistance which may be provided.<br>
<br>
</font>
</div>



<div> <br>

</div>



<div> <br>

</div>



<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>

From: David Zeuthen <zeuthen@gmail.com><br>

To: Louise Baldwin <louiserbaldwin@aol.com><br>

Cc: Thiago Macieira <thiago@kde.org>; D-Bus Mailing List <dbus@lists.freedesktop.org><br>

Sent: Tue, Mar 18, 2014 5:47 pm<br>

Subject: Re: How to interact with existing dbus session through sudo?<br>

<br>






<div id="AOLMsgPart_1_eb63d538-a388-4265-9528-4d5a95a6fd30">


<div dir="ltr">Hey,

<div class="gmail_extra"><br>



<div class="gmail_quote">On Tue, Mar 18, 2014 at 2:32 PM, Louise Baldwin <span dir="ltr"><<a href="mailto:louiserbaldwin@aol.com">louiserbaldwin@aol.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font color="black" face="arial">I <font>really do </font>appr<font>eciate your reply, but please note that, through additional trial and error, I have determined that it is in fact possible to interact with an existing dbus session through sudo ...<br>


</font></font></blockquote>

<div><br>

</div>



<div>The fact that it may work is just a coincidence (a bug, even) and this might change in the future (by adding more careful checking). The D-Bus session bus designed only for processes in the session it was created for and in the future we might even use different transports and/or namespaces (kdbus etc.) that are not reachable form outside where the session is running. So any crude hack that might work today will surely break in the future.</div>




<div><br>

</div>



<div>    David</div>



<div><br>

</div>

</div>

</div>

</div>



</div>





</div>

</font>