Escaping for paths

Ross Burton ross at
Thu Jun 15 03:58:24 PDT 2006


Several applications are writing methods to escape strings so that they
can be used in object paths (specifically Network Manager does this, and
eds-dbus has taken code from NM too).  EDS is using it so that it can
return an object path of the
form /org/gnome/evolution/addressbook/[uri], where obviously the URI
needs to be escaped.

I think it would be useful for DBus to contain a function that escaped
an arbitrary string so that it could be used in an object path to avoid
this needless wheel re-inventing.  Anyone else agree?

Ross Burton                                 mail: ross at
                                          jabber: ross at
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF

More information about the dbus mailing list