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

gimp permanent data AND parasiterc

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.

gimp permanent data AND parasiterc Lionel Tarazon Alcocer 11 Dec 18:18
  gimp permanent data AND parasiterc Sven Neumann 11 Dec 18:23
Lionel Tarazon Alcocer
2007-12-11 18:18:28 UTC (almost 17 years ago)

gimp permanent data AND parasiterc

Hi,

I need to store, let's say, my plug-in configuration:

(1) ¿Is there any way to store data (similarly to gimp_set_data, for example) so that gimp loads it automatically at start? I don't mean using parasites stored in an XCF file.

If not, ¿Should I use for this purpose any of the rc files in "$HOME/.gimp-2.4" to store this data, or It's just better to create my own file instead?

(2) ¿What's the parasiterc file used for?

Thanks in advance.

Sven Neumann
2007-12-11 18:23:29 UTC (almost 17 years ago)

gimp permanent data AND parasiterc

Hi,

On Tue, 2007-12-11 at 18:18 +0100, Lionel Tarazon Alcocer wrote:

(1)
¿Is there any way to store data (similarly to gimp_set_data, for example) so that gimp loads it automatically at start? I don't mean using parasites stored in an XCF file.

You can set a persistent global parasite using gimp_parasite_attach().

If not, ¿Should I use for this purpose any of the rc files in "$HOME/.gimp-2.4" to store this data, or It's just better to create my own file instead?

That's an alternative way of doing it. Do whatever you prefer. If you want to create your own file, please make sure that it is named after your plug-in. And consider to use GKeyFile for writing and loading it.

(2)
¿What's the parasiterc file used for?

It is used to store persistent global parasites.

Sven