[compiz] Flat file backend (ini)

Diogo Ferreira diogo at underdev.org
Thu Apr 5 12:22:08 PDT 2007


On 4/5/07, Mike Dransfield <mike at blueroot.co.uk> wrote:
>
> Diogo Ferreira wrote:
> > The current INI plugin seems to fail loading when there isn't a
> > ~/.compiz dir. Since most users won't have it I believe it makes sense
> > to mkdir it  before trying to mkdir the sub-options directory.
> > I would have done it but since you use the get dir function a lot it
> > would mean changing the structure a little and since it's your plugin
> > I think you know best how to change it accordingly.
> >
>
> Ive been meaning to get some clarification on whether
> or not I can rely on .compiz existing.  When I first wrote
> the ini plugin, I though I could.
>
> Its more a global directory so I do not create it, but I can
> if its required.
>
> Should I be creating this directory?  OR should it be the
> responsibility of core to make sure this exists (it is defined
> there)


You're right, it should be the core I guess, since it's an overall directory
and if each plugin which wants to use it needs check for its existence it
becomes a big amount of duplicated code. Maybe the core could create it on
demand?


Diogo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/compiz/attachments/20070405/671b4799/attachment.html


More information about the compiz mailing list