On 4/5/07, Mike Dransfield <[EMAIL PROTECTED]> 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
_______________________________________________ compiz mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/compiz
