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

dump defaults

This discussion is connected to the gimp-user-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.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

dump defaults Gary Aitken 01 Sep 20:57
  dump defaults Michael Natterer 01 Sep 22:12
   dump defaults Gary Aitken 02 Sep 02:56
Gary Aitken
2013-09-01 20:57:47 UTC (over 11 years ago)

dump defaults

Assuming one starts gimp with no user-specific gimprc, is there a way to dump out all the default values?

I'm asking because the default gimprc has everything commented out, and there's no GIMP2_DIRECTORY or gimp_dir defined in my environment.

Thanks,

Gary

Michael Natterer
2013-09-01 22:12:02 UTC (over 11 years ago)

dump defaults

On Sun, 2013-09-01 at 14:57 -0600, Gary Aitken wrote:

Assuming one starts gimp with no user-specific gimprc, is there a way to dump out all the default values?

gimp --dump-gimprc

I'm asking because the default gimprc has everything commented out, and there's no GIMP2_DIRECTORY or gimp_dir defined in my environment.

The default directories depend on the platform, and/or on the compile time prefix. You should use gimptool to figure these, the internal logic used is the same. Try gimptool --help.

--Mitch

Gary Aitken
2013-09-02 02:56:55 UTC (over 11 years ago)

dump defaults

On 09/01/13 16:12, Michael Natterer wrote:

On Sun, 2013-09-01 at 14:57 -0600, Gary Aitken wrote:

Assuming one starts gimp with no user-specific gimprc, is there a way to dump out all the default values?

gimp --dump-gimprc

ok that yields
(temp-path "${gimp_dir}/tmp")
(swap-path "${gimp_dir}")

I'm asking because the default gimprc has everything commented out, and there's no GIMP2_DIRECTORY or gimp_dir defined in my environment.

The default directories depend on the platform, and/or on the compile time prefix. You should use gimptool to figure these, the internal logic used is the same. Try gimptool --help.

I don't see anything there that indicates it is gimp_dir, and none of the values are the ones set by default, which in my case is ~/.gimp-2.8. All of the directory options are for source info (such as libdir, prefix, execprefix, mandir, etc., and all of the values are in non-user-writeable directories.

My system-wide (freebsd) default gimprc, /usr/local/etc/gimp/2.2/gimprc, has the following (commented-out) lines: (temp-path "${gimp_dir}/tmp")
(swap-path "${gimp_dir}")

If I look at Preferences/Folders, I see Temporary folder: tmp
Swap folder: .gimp-2.8

If I open a 10,000 x 3,000 .xcf which is 128MB, with the tile cache size set to 16MB, I see a new file ~/.gimp-2.8/gimpswap.6637, and nothing in ~/tmp. I don't know what will cause something to be written to temp space, but apparently gimp_dir is set to ~/.gimp-2.8 by default on fbsd. It is particularly confusing because the "tmp" entry, when seen in the UI, *looks*, because of the missing prefix path components, like it would be /tmp or ~/tmp, but in fact is not.

Thanks for the pointers.

Gary