<?xml version="1.0"?>
<page id="Gimp.temp_directory"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>unicode</api:type>
      </api:returns>
      <api:name>gimp_temp_directory</api:name>
    </api:function>
  </info>
  <title>Gimp.temp_directory</title>
  <synopsis><code mime="text/x-python">
@returns(unicode)
def temp_directory():
    # Python wrapper for gimp_temp_directory()
  </code></synopsis>
  <p>Returns the default top directory for GIMP temporary files. If the
environment variable GIMP3_TEMPDIR exists, that is used.  It
should be an absolute pathname.  Otherwise, a subdirectory of the
directory returned by g_get_tmp_dir() is used.</p>  <p>In config files such as gimprc, the string ${gimp_temp_dir} expands
to this directory.</p>  <p>Note that the actual directories used for GIMP temporary files can
be overridden by the user in the preferences dialog.</p>  <p>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 always is
UTF-8.).</p>
  <p>Since 2.10.10</p>
<terms>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
