OLPC and .service files in a users home directory

John (J5) Palmieri johnp at redhat.com
Mon Oct 30 11:02:23 PST 2006


On Mon, 2006-10-30 at 20:09 +0200, Thiago Macieira wrote:
> John (J5) Palmieri wrote:
> >There are a couple of ways we can go about this.  We can expand
> >variables in the path that start with the dollar sign (e.g.
> ><servicedir>$HOME/.dbus/service</service>) or add a special tag (e.g.
> ><servicedir><homedir />/.dbus/service</service>).
> 
> Please don't. Don't invent a new method.
> 
> Let's just reuse $XDG_DATA_DIRS and $XDG_DATA_HOME. We already have an 
> infrastructure of setting those values and we have reasonable defaults. I 
> would also recommend renaming .service to .desktop and cascading the 
> configuration like in the menu spec.

I don't think we will move away from specifying the directory in the
configuration file but we can certainly accommodate the XDG directories.

I propose to treat $XDG_DATA_HOME and $XDG_DATA_DIRS as special.  If
they are not set we set them to the default.  This would also involve
allowing <servicedir> to take arguments in the form of dir:dir since
XDG_DATA_DIRS can specify more than one directory.

-- 
John (J5) Palmieri <johnp at redhat.com>



More information about the dbus mailing list