should request_name org.freedesktop.DBus fail?

Havoc Pennington hp at redhat.com
Mon Nov 7 16:13:06 PST 2005


On Mon, 2005-11-07 at 11:51 +0000, Robert McQueen wrote:
> I've just been refactoring some of the bus name request code in the
> Python bindings, and wrote a test case to check that errors were being
> correctly caught (a first for bus names in the Python bindings...
> hnnrgh). I wanted something that would always be taken, so I tried
> requesting org.freedesktop.DBus, but it retured
> DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER. Given that you can /always/ send
> messages to the bus on org.freedesktop.DBus, surely you should never be
> able to think you've registered this name?

The bus should not let you own this name, agreed. It's a bug.

Havoc





More information about the dbus mailing list