1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>Running GIO applications</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
<link rel="start" href="index.html" title="GIO Reference Manual">
8
<link rel="up" href="pt01.html" title="Part I. GIO Overview">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
7
<link rel="home" href="index.html" title="GIO Reference Manual">
8
<link rel="up" href="pt01.html" title="Part I. GIO Overview">
9
9
<link rel="prev" href="ch02.html" title="Compiling GIO applications">
10
<link rel="next" href="gio-extension-points.html" title="Extending GIO">
11
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
10
<link rel="next" href="extending-gio.html" title="Extending GIO">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="pt01.html" title="Part I. GIO Overview">
13
<link rel="part" href="pt01.html" title="Part I. GIO Overview">
14
14
<link rel="chapter" href="ch01.html" title="Introduction">
15
15
<link rel="chapter" href="ch02.html" title="Compiling GIO applications">
16
16
<link rel="chapter" href="ch03.html" title="Running GIO applications">
17
<link rel="chapter" href="gio-extension-points.html" title="Extending GIO">
18
<link rel="part" href="pt02.html" title="Part II. API Reference">
17
<link rel="chapter" href="extending-gio.html" title="Extending GIO">
18
<link rel="part" href="pt02.html" title="Part II. API Reference">
19
19
<link rel="chapter" href="file_ops.html" title="File Operations">
20
20
<link rel="chapter" href="file_mon.html" title="File System Monitoring">
21
21
<link rel="chapter" href="async.html" title="Asynchronous I/O">
25
25
<link rel="chapter" href="icons.html" title="Icons">
26
26
<link rel="chapter" href="utils.html" title="Utilities">
27
27
<link rel="chapter" href="extending.html" title="Extending GIO">
28
<link rel="part" href="migrating.html" title="Part III. Migrating to GIO">
28
<link rel="part" href="migrating.html" title="Part III. Migrating to GIO">
29
29
<link rel="chapter" href="ch14.html" title="Migrating from POSIX to GIO">
30
30
<link rel="chapter" href="ch15.html" title="Migrating from GnomeVFS to GIO">
31
31
<link rel="chapter" href="gio-hierarchy.html" title="Object Hierarchy">
32
32
<link rel="index" href="ix01.html" title="Index">
33
<link rel="index" href="ix02.html" title="Index of new symbols in 2.18">
34
35
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
35
36
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
37
38
<td><a accesskey="u" href="pt01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
38
39
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
39
40
<th width="100%" align="center">GIO Reference Manual</th>
40
<td><a accesskey="n" href="gio-extension-points.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
41
<td><a accesskey="n" href="extending-gio.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
42
43
<div class="chapter" lang="en">
43
44
<div class="titlepage"><div><div><h2 class="title">
44
<a name="id2703875"></a>Running GIO applications</h2></div></div></div>
45
<a name="id2555783"></a>Running GIO applications</h2></div></div></div>
46
47
GIO inspects a few of environment variables in addition to the
49
<p><b><code class="envar">XDG_DATA_HOME</code>, <code class="envar">XDG_DATA_DIRS</code>. </b>
50
<p><b><code class="envar">XDG_DATA_HOME</code>, <code class="envar">XDG_DATA_DIRS</code>. </b>
50
51
GIO uses these environment variables to locate MIME information.
51
52
For more information, see the <a class="ulink" href="http://freedesktop.org/Standards/shared-mime-info-spec" target="_top">Shared MIME-info Database</a>
52
53
and the <a class="ulink" href="http://freedesktop.org/Standards/basedir-spec" target="_top">Base Directory Specification</a>.
55
<p><b><code class="envar">GVFS_DISABLE_FUSE</code>. </b>
56
This variable can be set to keep <span class="type">Gvfs</span> from starting the fuse backend,
57
which may be unwanted or unnecessary in certain situations.
55
60
The following environment variables are only useful for debugging
56
61
GIO itself or modules that it loads. They should not be set in a
57
62
production environment.
59
<p><b><code class="envar">GIO_USE_VFS</code>. </b>
64
<p><b><code class="envar">GIO_USE_VFS</code>. </b>
60
65
This environment variable can be set to the name of a <a class="link" href="GVfs.html" title="GVfs"><span class="type">GVfs</span></a>
61
66
implementation to override the default for debugging purposes.
62
67
The <a class="link" href="GVfs.html" title="GVfs"><span class="type">GVfs</span></a> implementation for local files that is included in GIO
63
68
has the name "local", the implementation in the gvfs module has
66
<p><b><code class="envar">GIO_USE_VOLUME_MONITOR</code>. </b>
71
<p><b><code class="envar">GIO_USE_VOLUME_MONITOR</code>. </b>
67
72
This variable can be set to the name of a <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a>
68
73
implementation to override the default for debugging purposes.
69
74
The <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor"><span class="type">GVolumeMonitor</span></a> implementation for local files that is included
70
75
in GIO has the name "unix", the hal-based implementation in the
71
76
gvfs module has the name "hal".
73
<p><b><code class="envar">GIO_USE_URI_ASSOCIATION</code>. </b>
78
<p><b><code class="envar">GIO_USE_URI_ASSOCIATION</code>. </b>
74
79
This variable can be set to the name of a <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfoLookup"><span class="type">GDesktopAppInfoLookup</span></a>
75
implementation to override the dfeault for debugging purposes.
80
implementation to override the default for debugging purposes.
76
81
GIO does not include a <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfoLookup"><span class="type">GDesktopAppInfoLookup</span></a> implementation,
77
82
the GConf-based implementation in the gvfs module has the name
80
<p><b><code class="envar">GVFS_INOTIFY_DIAG</code>. </b>
85
<p><b><code class="envar">GVFS_INOTIFY_DIAG</code>. </b>
81
86
When this environment variable is set and GIO has been built
82
87
with inotify support, a dump of diagnostic inotify information
83
88
will be written every 20 seconds to a file named
84
89
<code class="filename">/tmp/gvfsdid.<em class="replaceable"><code>pid</code></em></code>.
91
<p><b><code class="envar">GIO_EXTRA_MODULES</code>. </b>
92
When this environment variable is set to a path, or a set of
93
paths separated by a colon, GIO will attempt to load
94
modules from within the path.
99
Generated by GTK-Doc V1.11</div>