Object paths naming conventions?

David Stockwell dstockwell at frequency-one.com
Thu Jul 17 14:16:11 PDT 2008

AFAIK there is no preferred way for using Object Paths, as long as they 
are unique within the namespace defined by your well-known connection 
name ("org.fifthplanet.gogglesmm").

In fact, the BlueZ group (well-known name: "org.bluez") recently moved 
from longer names like/org/bluez/hci0 to /hci0 for one object path, 
because the "/org/bluez" prefix really conveyed no additional 

So, the three object names you describe are fine.

----- Original Message ----- 
From: "Sander Jansen" <s.jansen at gmail.com>
To: <dbus at lists.freedesktop.org>
Sent: Thursday, July 17, 2008 12:49 PM
Subject: Object paths naming conventions?

> I'm a little bit confused on choosing good names for object paths. My
> program lives on a unique connection name: "org.fifthplanet.gogglesmm"
> Looking at the MPRIS spec
> (http://wiki.xmms2.xmms.se/wiki/MPRIS#The_Object_Hierarchy), they
> expose three objects with the following paths:
> "/"
> "/Player"
> "/Tracklist"
> Now I also seen applications using a more complete path (like in 
> rhythmbox):
> "/org/gnome/Rhythmbox/Shell"
> "/org/gnome/Rhythmbox/Player"
> Is there any prefered way of using object Paths? Or am I mixing 
> metaphores?
> Thanks,
> Sander

More information about the dbus mailing list