Saving settings for a plug-in
Other plugins that save things go to the user profile directory root
(.gimp-2.6). For example, I have:
focusblurrc
pspirc
Check the source of any of these for examples.
Alternately, if there is not much data, you could use parasites.
some plugins also create/require a subdirectory under the plugin
installed directory where things like presets are saved. An exmpl of
this is mathmap or felimage.
-Rob A>
On Tue, Mar 2, 2010 at 11:16 AM, François Gingras
wrote:
Greetings,
A plug-in I'm currently developing may require writing a small file somewhere to save its 'last-used' and 'default' settings: those settings can theoritically use lots of memory (typically just a few bytes though), so I need to allocate the appropriate amount of memory everytime the plug-in is run. I was wondering if it is "ethically correct" for a plug-in to save such a file, and if so, what would be the best directory to save said file to.
Thank you!
François Gingras