<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div><div>I poked on IRC for this but nobody had an answer then.</div><div><br></div><div>OSX: 10.8.4</div><div>Dbus: 1.6.12</div><div><br></div><div>I've installed Dbus using MacPorts, and then Homebrew with similar results. It looks to be installed properly (launched through launchd agent script).</div><div><br></div><div><div>burdo-macbook-pro:dbus burdo$ ps aux | grep dbus</div><div>burdo            900   0.0  0.0  2443428    904   ??  S    10:15am   0:00.01 /usr/local/Cellar/d-bus/1.6.12/bin/dbus-daemon --nofork --session</div><div><br></div></div><div><div>burdo-macbook-pro:dbus burdo$ launchctl getenv DBUS_LAUNCHD_SESSION_BUS_SOCKET</div><div>/tmp/launch-hNIxlB/unix_domain_listener</div></div><div><br></div><div>burdo-macbook-pro:dbus burdo$ dbus-monitor --session</div><div>signal sender=org.freedesktop.DBus -> dest=:1.2 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired</div><div>   string ":1.2"</div><div>method call sender=:1.2 -> dest=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch</div><div>   string "eavesdrop=true,type='method_call'"</div><div>method call sender=:1.2 -> dest=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch</div><div>   string "eavesdrop=true,type='method_return'"</div><div>method call sender=:1.2 -> dest=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch</div><div>   string "eavesdrop=true,type='error'"</div><div><br></div><div>Which looks fine as far as I can tell. But when I try to connect to the bus to own a name, something that used to work in plain Ubuntu doesn't on OSX. I'm using the code from the Gdbus example:12 "Simple application owning a name".</div><div><br></div><div>Attempting to connect like this:</div><div><div>owner_id = g_bus_own_name (G_BUS_TYPE_SESSION,</div><div>                               "org.something.Test",</div><div>                               G_BUS_NAME_OWNER_FLAGS_NONE,</div><div>                               on_bus_acquired,</div><div>                               on_name_acquired,</div><div>                               on_name_lost,</div><div>                               NULL,</div><div>                               NULL);</div></div><div><br></div><div>Will get the on_<span style="font-style: italic; ">name_</span>lost function to be called right away with a NULL connection. </div><div><br></div><div>Any idea where I should start looking?</div><div><br></div><div>Thanks! </div><div>--</div><div>Dominique</div></div></body></html>