<div dir="ltr">Thanks for the answer. I'm sad to hear that the information I need is trashed :-(<div><br></div><div>I don't currently have dbus sources on the machine, and am not particularly interested in re-compiling dbus. I just want to develop with dbus.</div>
<div>It would seem to me that this is a point of possible improvement for the usability of the dbus system for developers. (Whether this is a priority for dbus developers is a different question, of course.)</div><div><br>
</div><div>Sincerely,</div><div><br></div><div>jw</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><font face="courier new, monospace"><br><br><br><font>Sincerely,</font><br><br><font>Jon Watte</font><br>
<br><br>--<br>"<span style="color:rgb(0,0,0)">I find that the harder I work, the more luck I seem to have." -- Thomas Jefferson</span></font></div></div>
<br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 9:27 AM, Ralf Habacker <span dir="ltr"><<a href="mailto:ralf@habacker.de" target="_blank">ralf@habacker.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Am 05.08.2014 19:20, schrieb Jon Watte:<br>
<div class="">> Thanks for the assurance of zoeticity!<br>
><br>
> Now, as for the question:<br>
> In activation-helper.c, function switch_user, there are four cases<br>
> where the function may fail.<br>
> They all fail with the same error code, but each of them has a<br>
> separate extra error information string.<br>
> How can I see which specific error information string was used to<br>
> generate the error I'm seeing when attempting dbus activation of my<br>
> service?<br>
</div>From looking int activation-helper-bin.c I would say the message is<br>
trashed. You should apply something like the following patch to see the<br>
error messages on stderr.<br>
<br>
diff --git a/bus/activation-helper-bin.c b/bus/activation-helper-bin.c<br>
index f5f16d2..30ddb64 100644<br>
--- a/bus/activation-helper-bin.c<br>
+++ b/bus/activation-helper-bin.c<br>
@@ -95,6 +95,8 @@ main (int argc, char **argv)<br>
{<br>
/* convert error to an exit code */<br>
retval = convert_error_to_exit_code (&error);<br>
+ fprintf(stderr, "%s: %s\n", error->name, error->message);<br>
+<br>
dbus_error_free (&error);<br>
<div class=""> }<br>
> I presume there's a dbus activation server (perhaps this is the<br>
> message bus daemon itself.) Is there a standard way to increase<br>
> verbosity of logging of this, perhaps?<br>
</div>If dbus is compiled with --enable-verbose-mode you can set the<br>
environment variable DBUS_VERBOSE=1 before running any dbus related<br>
application.<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888"> Ralf<br>
<br>
</font></span></blockquote></div><br></div>