RSS/Atom feed Twitter
Site is read-only, email is disabled

Saving settings for a plug-in

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Saving settings for a plug-in François Gingras 02 Mar 17:16
  Saving settings for a plug-in Rob Antonishen 02 Mar 17:40
François Gingras
2010-03-02 17:16:30 UTC (about 15 years ago)

Saving settings for a plug-in

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

Rob Antonishen
2010-03-02 17:40:09 UTC (about 15 years ago)

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