Object paths naming conventions?

Sander Jansen s.jansen at gmail.com
Thu Jul 17 10:49:41 PDT 2008


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