Additions
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 23 Jan 2008 06:24:27 +0000 (06:24 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 23 Jan 2008 06:24:27 +0000 (06:24 +0000)
svn path=/trunk/; revision=6359

docs/reference/ChangeLog
docs/reference/gio/overview.xml

index e037fd3..c9c063f 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-23  Matthias Clasen  <mclasen@redhat.com>
+
+       * gio/overview.xml: Document environment
+       variables used by GIO.
+
 2008-01-21  Matthias Clasen  <mclasen@redhat.com>
 
        * === Released 2.15.3 ===
index 0fcab66..5ae6ccc 100644 (file)
     </para>
   </chapter>
 
+  <chapter>
+    <title>Running GIO applications</title>
+
+    <para>
+      GIO inspects a few of environment variables in addition to the
+      ones used by GLib.
+    </para>
+
+    <formalpara>
+      <title><envar>XDG_DATA_HOME</envar>, <envar>XDG_DATA_DIRS</envar></title>
+
+      <para>
+        GIO uses these environment variables to locate MIME information. 
+        For more information, see the <ulink url="http://freedesktop.org/Standards/shared-mime-info-spec">Shared MIME-info Database</ulink>
+        and the <ulink url="http://freedesktop.org/Standards/basedir-spec">Base Directory Specification</ulink>.
+      </para>
+    </formalpara>
+
+    <para>
+      The following environment variables are only useful for debugging
+      GIO itself or modules that it loads. They should not be set in a
+      production environment.
+    </para>
+    <formalpara>
+      <title><envar>GIO_USE_VFS</envar></title>
+
+      <para>
+        This environment variable can be set to the name of a #GVfs 
+        implementation to override the default for debugging purposes.
+        The #GVfs implementation for local files that is included in GIO 
+        has the name "local", the implementation in the gvfs module has 
+        the name "gvfs". 
+      </para>
+    </formalpara>
+
+    <formalpara>
+      <title><envar>GIO_USE_VOLUME_MONITOR</envar></title>
+        
+      <para>
+        This variable can be set to the name of a #GVolumeMonitor 
+        implementation to override the default for debugging purposes.
+        The #GVolumeMonitor implementation for local files that is included
+        in GIO has the name "unix", the hal-based implementation in the
+        gvfs module has the name "hal".
+      </para>
+    </formalpara>
+
+    <formalpara>
+      <title><envar>GVFS_INOTIFY_DIAG</envar></title>
+
+      <para>
+        When this environment variable is set and GIO has been built
+        with inotify support, a dump of diagnostic inotify information 
+        will be written every 20 seconds to a file named
+        <filename>/tmp/gvfsdid.<replaceable>pid</replaceable></filename>.
+      </para>
+    </formalpara>
+
+  </chapter>
+
 </part>