cache_directory


Description:


[ Version ( since = "2.10.10" ) ]
public unowned string cache_directory ()

Returns the default top directory for GIMP cached files.

If the environment variable `GIMP3_CACHEDIR` exists, that is used. It should be an absolute pathname. Otherwise, a subdirectory of the directory returned by [GLib.get_user_cache_dir] is used.

Note that the actual directories used for GIMP caches files can be overridden by the user in the preferences dialog.

In config files such as gimprc, the string "${gimp_cache_dir}" expands to this directory.

The returned string is owned by GIMP and must not be modified or freed. The returned string is in the encoding used for filenames by GLib, which isn't necessarily UTF-8 (on Windows it is always UTF-8).

Returns:

The default top directory for GIMP cached files.


Namespace: Gimp
Package: gimp-3.0