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&nbsp; before trying to mkdir the sub-options directory.<br>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&#39;s your plugin I
think you know best how to change it accordingly.
<br><br>Regards,<br><span class="sg"><br>Diogo Ferreira</span><br><br><div><span class="gmail_quote">On 2/22/07, <b class="gmail_sendername">Mike Dransfield</b> &lt;<a href="mailto:mike@blueroot.co.uk">mike@blueroot.co.uk
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have written an initial flat file configuration<br>backend for Compiz.&nbsp;&nbsp;At the moment it is using
<br>FAM for monitoring of files (it can be compiled<br>without monitoring support for now).<br><br>It is working fine but there are a couple of problems.<br><br>1. It looks like I should use addFileWatch rather than<br>directly accessing FAM, is this correct?&nbsp;&nbsp;I notice dbus
<br>uses addFileWatch rather than (*d-&gt;addFileWatch) is<br>this intentional, and does it get wrapped in the same<br>way?<br><br>2. I cannot see how to work out what the defaults are<br>so that people can revert to default values.&nbsp;&nbsp;As far as
<br>I know Compiz does not store the original value so the<br>only way to revert back when someone deletes a config<br>file is to reload Compiz.&nbsp;&nbsp;I could keep the defaults in a<br>separate system wide file, but that would probably have
<br>problems.&nbsp;&nbsp;I like having it only rely on user config files.<br>Would adding some default storage to the core make sense?,<br>we could then have a dbus method which would revert an<br>individual value easily.<br><br><a href="http://www.anykeysoftware.co.uk/compiz/plugins/ini.c">
http://www.anykeysoftware.co.uk/compiz/plugins/ini.c</a><br><a href="http://www.anykeysoftware.co.uk/compiz/plugins/Makefile.ini">http://www.anykeysoftware.co.uk/compiz/plugins/Makefile.ini</a><br><br>Any other comments or suggestions are welcome
<br><br>_______________________________________________<br>compiz mailing list<br><a href="mailto:compiz@lists.freedesktop.org">compiz@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/compiz">
http://lists.freedesktop.org/mailman/listinfo/compiz</a><br></blockquote></div><br>