Cannot own bus name on OSX
Dominique Bureau
dbureau at gmail.com
Wed Aug 14 09:20:04 PDT 2013
I poked on IRC for this but nobody had an answer then.
OSX: 10.8.4
Dbus: 1.6.12
I've installed Dbus using MacPorts, and then Homebrew with similar results.
It looks to be installed properly (launched through launchd agent script).
burdo-macbook-pro:dbus burdo$ ps aux | grep dbus
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
burdo-macbook-pro:dbus burdo$ launchctl getenv
DBUS_LAUNCHD_SESSION_BUS_SOCKET
/tmp/launch-hNIxlB/unix_domain_listener
burdo-macbook-pro:dbus burdo$ dbus-monitor --session
signal sender=org.freedesktop.DBus -> dest=:1.2 serial=2
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
member=NameAcquired
string ":1.2"
method call sender=:1.2 -> dest=org.freedesktop.DBus serial=3
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
string "eavesdrop=true,type='method_call'"
method call sender=:1.2 -> dest=org.freedesktop.DBus serial=4
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
string "eavesdrop=true,type='method_return'"
method call sender=:1.2 -> dest=org.freedesktop.DBus serial=5
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
string "eavesdrop=true,type='error'"
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".
Attempting to connect like this:
owner_id = g_bus_own_name (G_BUS_TYPE_SESSION,
"org.something.Test",
G_BUS_NAME_OWNER_FLAGS_NONE,
on_bus_acquired,
on_name_acquired,
on_name_lost,
NULL,
NULL);
Will get the on_name_lost function to be called right away with a NULL
connection.
Any idea where I should start looking?
Thanks!
--
Dominique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130814/c436e71e/attachment.html>
More information about the dbus
mailing list