~ubuntu-branches/ubuntu/natty/gnome-vfs/natty

« back to all changes in this revision

Viewing changes to doc/html/gnome-vfs-2.0-gnome-vfs-mime-database.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-03-17 16:12:58 UTC
  • mfrom: (0.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090317161258-px3a2czt9g2ktjz3
Tags: 1:2.24.1-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html>
 
3
<head>
 
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
5
<title>MIME Database</title>
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.3">
 
7
<link rel="home" href="index.html" title="GnomeVFS - Filesystem Abstraction library">
 
8
<link rel="up" href="mime-registry.html" title="MIME Registry">
 
9
<link rel="prev" href="gnome-vfs-2.0-gnome-vfs-mime-utils.html" title="gnome-vfs-mime-utils">
 
10
<link rel="next" href="gnome-vfs-2.0-gnome-vfs-mime-monitor.html" title="gnome-vfs-mime-monitor">
 
11
<meta name="generator" content="GTK-Doc V1.12 (XML mode)">
 
12
<link rel="stylesheet" href="style.css" type="text/css">
 
13
<link rel="chapter" href="about.html" title="Introduction to GnomeVFS">
 
14
<link rel="chapter" href="data-types.html" title="Basic Data Types">
 
15
<link rel="chapter" href="gnome-vfs-basic-file-ops.html" title="File Operations">
 
16
<link rel="chapter" href="gnome-vfs-directory-ops.html" title="Directory-Specific Operations">
 
17
<link rel="chapter" href="gnome-vfs-file-and-dirs-ops.html" title="Advanced File/Directory Operations">
 
18
<link rel="chapter" href="gnome-vfs-file-async-ops.html" title="Asynchronous Operations">
 
19
<link rel="chapter" href="volumes.html" title="Volumes and Drives Handling">
 
20
<link rel="chapter" href="networking.html" title="Networking">
 
21
<link rel="chapter" href="mime-registry.html" title="MIME Registry">
 
22
<link rel="chapter" href="modules.html" title="Filesystem Modules">
 
23
</head>
 
24
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 
25
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
 
26
<tr valign="middle">
 
27
<td><a accesskey="p" href="gnome-vfs-2.0-gnome-vfs-mime-utils.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
 
28
<td><a accesskey="u" href="mime-registry.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
 
29
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
 
30
<th width="100%" align="center">GnomeVFS - Filesystem Abstraction library</th>
 
31
<td><a accesskey="n" href="gnome-vfs-2.0-gnome-vfs-mime-monitor.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
 
32
</tr>
 
33
<tr><td colspan="5" class="shortcuts">
 
34
<a href="#gnome-vfs-2.0-gnome-vfs-mime-database.synopsis" class="shortcut">Top</a>
 
35
                   | 
 
36
                  <a href="#gnome-vfs-2.0-gnome-vfs-mime-database.description" class="shortcut">Description</a>
 
37
</td></tr>
 
38
</table>
 
39
<div class="refentry" lang="en">
 
40
<a name="gnome-vfs-2.0-gnome-vfs-mime-database"></a><div class="titlepage"></div>
 
41
<div class="refnamediv"><table width="100%"><tr>
 
42
<td valign="top">
 
43
<h2><span class="refentrytitle"><a name="gnome-vfs-2.0-gnome-vfs-mime-database.top_of_page"></a>MIME Database</span></h2>
 
44
<p>MIME Database — functions for getting information about applications and components associated with MIME types.</p>
 
45
</td>
 
46
<td valign="top" align="right"></td>
 
47
</tr></table></div>
 
48
<div class="refsynopsisdiv">
 
49
<a name="gnome-vfs-2.0-gnome-vfs-mime-database.synopsis"></a><h2>Synopsis</h2>
 
50
<pre class="synopsis">
 
51
                    <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a>;
 
52
<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-default-application" title="gnome_vfs_mime_get_default_application ()">gnome_vfs_mime_get_default_application</a>
 
53
                                                        (const char *mime_type);
 
54
<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-default-application-for-uri" title="gnome_vfs_mime_get_default_application_for_uri ()">gnome_vfs_mime_get_default_application_for_uri</a>
 
55
                                                        (const char *uri,
 
56
                                                         const char *mime_type);
 
57
GList *             <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-all-applications" title="gnome_vfs_mime_get_all_applications ()">gnome_vfs_mime_get_all_applications</a> (const char *mime_type);
 
58
GList *             <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-all-applications-for-uri" title="gnome_vfs_mime_get_all_applications_for_uri ()">gnome_vfs_mime_get_all_applications_for_uri</a>
 
59
                                                        (const char *uri,
 
60
                                                         const char *mime_type);
 
61
GList *             <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-all-desktop-entries" title="gnome_vfs_mime_get_all_desktop_entries ()">gnome_vfs_mime_get_all_desktop_entries</a>
 
62
                                                        (const char *mime_type);
 
63
gchar *             <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-default-desktop-entry" title="gnome_vfs_mime_get_default_desktop_entry ()">gnome_vfs_mime_get_default_desktop_entry</a>
 
64
                                                        (const char *mime_type);
 
65
Bonobo_ServerInfo * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-default-component" title="gnome_vfs_mime_get_default_component ()">gnome_vfs_mime_get_default_component</a>
 
66
                                                        (const char *mime_type);
 
67
GList *             <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-all-components" title="gnome_vfs_mime_get_all_components ()">gnome_vfs_mime_get_all_components</a>   (const char *mime_type);
 
68
const char *        <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-icon" title="gnome_vfs_mime_get_icon ()">gnome_vfs_mime_get_icon</a>             (const char *mime_type);
 
69
const char *        <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-description" title="gnome_vfs_mime_get_description ()">gnome_vfs_mime_get_description</a>      (const char *mime_type);
 
70
gboolean            <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-can-be-executable" title="gnome_vfs_mime_can_be_executable ()">gnome_vfs_mime_can_be_executable</a>    (const char *mime_type);
 
71
<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-new-from-desktop-id" title="gnome_vfs_mime_application_new_from_desktop_id ()">gnome_vfs_mime_application_new_from_desktop_id</a>
 
72
                                                        (const char *id);
 
73
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a>      <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-launch" title="gnome_vfs_mime_application_launch ()">gnome_vfs_mime_application_launch</a>   (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app,
 
74
                                                         GList *uris);
 
75
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a>      <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-launch-with-env" title="gnome_vfs_mime_application_launch_with_env ()">gnome_vfs_mime_application_launch_with_env</a>
 
76
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app,
 
77
                                                         GList *uris,
 
78
                                                         char **envp);
 
79
const char *        <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-desktop-id" title="gnome_vfs_mime_application_get_desktop_id ()">gnome_vfs_mime_application_get_desktop_id</a>
 
80
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
 
81
const char *        <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-desktop-file-path" title="gnome_vfs_mime_application_get_desktop_file_path ()">gnome_vfs_mime_application_get_desktop_file_path</a>
 
82
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
 
83
const char *        <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-name" title="gnome_vfs_mime_application_get_name ()">gnome_vfs_mime_application_get_name</a> (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
 
84
const char *        <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-generic-name" title="gnome_vfs_mime_application_get_generic_name ()">gnome_vfs_mime_application_get_generic_name</a>
 
85
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
 
86
const char *        <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-icon" title="gnome_vfs_mime_application_get_icon ()">gnome_vfs_mime_application_get_icon</a> (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
 
87
const char *        <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-exec" title="gnome_vfs_mime_application_get_exec ()">gnome_vfs_mime_application_get_exec</a> (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
 
88
const char *        <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-binary-name" title="gnome_vfs_mime_application_get_binary_name ()">gnome_vfs_mime_application_get_binary_name</a>
 
89
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
 
90
gboolean            <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-requires-terminal" title="gnome_vfs_mime_application_requires_terminal ()">gnome_vfs_mime_application_requires_terminal</a>
 
91
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
 
92
gboolean            <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-supports-uris" title="gnome_vfs_mime_application_supports_uris ()">gnome_vfs_mime_application_supports_uris</a>
 
93
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
 
94
gboolean            <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-supports-startup-notification" title="gnome_vfs_mime_application_supports_startup_notification ()">gnome_vfs_mime_application_supports_startup_notification</a>
 
95
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
 
96
const char *        <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-startup-wm-class" title="gnome_vfs_mime_application_get_startup_wm_class ()">gnome_vfs_mime_application_get_startup_wm_class</a>
 
97
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
 
98
gboolean            <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-equal" title="gnome_vfs_mime_application_equal ()">gnome_vfs_mime_application_equal</a>    (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app_a,
 
99
                                                         <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app_b);
 
100
<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-copy" title="gnome_vfs_mime_application_copy ()">gnome_vfs_mime_application_copy</a>
 
101
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);
 
102
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-free" title="gnome_vfs_mime_application_free ()">gnome_vfs_mime_application_free</a>     (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);
 
103
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-list-free" title="gnome_vfs_mime_application_list_free ()">gnome_vfs_mime_application_list_free</a>
 
104
                                                        (GList *list);
 
105
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-component-list-free" title="gnome_vfs_mime_component_list_free ()">gnome_vfs_mime_component_list_free</a>  (GList *list);
 
106
</pre>
 
107
</div>
 
108
<div class="refsect1" lang="en">
 
109
<a name="gnome-vfs-2.0-gnome-vfs-mime-database.description"></a><h2>Description</h2>
 
110
<p>
 
111
This API can be used to query the applications and components associated with particular MIME types,
 
112
and to collect extra information about them, and also provides a convenience function for launching
 
113
them.
 
114
Applications can register themselves for particular MIME types by adhering to the
 
115
<a class="ulink" href="http://standards.freedesktop.org/desktop-entry-spec/latest" target="_top">
 
116
Freedesktop.Org Desktop Entry Specification</a>.
 
117
</p>
 
118
</div>
 
119
<div class="refsect1" lang="en">
 
120
<a name="gnome-vfs-2.0-gnome-vfs-mime-database.details"></a><h2>Details</h2>
 
121
<div class="refsect2" lang="en">
 
122
<a name="GnomeVFSMimeApplication"></a><h3>GnomeVFSMimeApplication</h3>
 
123
<pre class="programlisting">typedef struct {
 
124
        char *id;
 
125
        char *name;
 
126
} GnomeVFSMimeApplication;
 
127
</pre>
 
128
<p>
 
129
A struct encapsulating information about an
 
130
application known to the MIME database.
 
131
</p>
 
132
<p>
 
133
Only very few fields of this information are actually
 
134
public, most of them must be queried using the
 
135
<code class="literal">gnome_vfs_mime_application_*()</code>
 
136
API.</p>
 
137
<p>
 
138
</p>
 
139
<div class="variablelist"><table border="0">
 
140
<col align="left" valign="top">
 
141
<tbody>
 
142
<tr>
 
143
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSMimeApplication.id"></a>id</code></em>;</span></p></td>
 
144
<td> The desktop ID of the application.
 
145
</td>
 
146
</tr>
 
147
<tr>
 
148
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSMimeApplication.name"></a>name</code></em>;</span></p></td>
 
149
<td> The user-visible name of the application.
 
150
</td>
 
151
</tr>
 
152
</tbody>
 
153
</table></div>
 
154
</div>
 
155
<hr>
 
156
<div class="refsect2" lang="en">
 
157
<a name="gnome-vfs-mime-get-default-application"></a><h3>gnome_vfs_mime_get_default_application ()</h3>
 
158
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * gnome_vfs_mime_get_default_application
 
159
                                                        (const char *mime_type);</pre>
 
160
<p>
 
161
Query the MIME database for the application to be executed on files of MIME type
 
162
<em class="parameter"><code>mime_type</code></em> by default.
 
163
</p>
 
164
<p>
 
165
If you know the actual uri of the file you should use gnome_vfs_mime_get_default_application_for_uri
 
166
instead, as it will then be able to pick a better app. For instance it won't pick
 
167
an app that claims to only handle local files for a remote uri.</p>
 
168
<p>
 
169
</p>
 
170
<div class="variablelist"><table border="0">
 
171
<col align="left" valign="top">
 
172
<tbody>
 
173
<tr>
 
174
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
175
<td> a const char * containing a mime type, e.g. "image/png".
 
176
</td>
 
177
</tr>
 
178
<tr>
 
179
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
180
<td> a <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> representing the default handler of <em class="parameter"><code>mime_type</code></em>.
 
181
</td>
 
182
</tr>
 
183
</tbody>
 
184
</table></div>
 
185
</div>
 
186
<hr>
 
187
<div class="refsect2" lang="en">
 
188
<a name="gnome-vfs-mime-get-default-application-for-uri"></a><h3>gnome_vfs_mime_get_default_application_for_uri ()</h3>
 
189
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * gnome_vfs_mime_get_default_application_for_uri
 
190
                                                        (const char *uri,
 
191
                                                         const char *mime_type);</pre>
 
192
<p>
 
193
</p>
 
194
<div class="variablelist"><table border="0">
 
195
<col align="left" valign="top">
 
196
<tbody>
 
197
<tr>
 
198
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
 
199
<td>
 
200
</td>
 
201
</tr>
 
202
<tr>
 
203
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
204
<td>
 
205
</td>
 
206
</tr>
 
207
<tr>
 
208
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
209
<td>
 
210
</td>
 
211
</tr>
 
212
</tbody>
 
213
</table></div>
 
214
</div>
 
215
<hr>
 
216
<div class="refsect2" lang="en">
 
217
<a name="gnome-vfs-mime-get-all-applications"></a><h3>gnome_vfs_mime_get_all_applications ()</h3>
 
218
<pre class="programlisting">GList *             gnome_vfs_mime_get_all_applications (const char *mime_type);</pre>
 
219
<p>
 
220
Return an alphabetically sorted list of <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a>
 
221
data structures representing all applications in the MIME database registered
 
222
to handle files of MIME type <em class="parameter"><code>mime_type</code></em> (and supertypes).</p>
 
223
<p>
 
224
</p>
 
225
<div class="variablelist"><table border="0">
 
226
<col align="left" valign="top">
 
227
<tbody>
 
228
<tr>
 
229
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
230
<td> a const char * containing a mime type, e.g. "image/png".
 
231
</td>
 
232
</tr>
 
233
<tr>
 
234
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
235
<td> a <span class="type">GList</span> * where the elements are <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> *
 
236
representing applications that handle MIME type <em class="parameter"><code>mime_type</code></em>.
 
237
</td>
 
238
</tr>
 
239
</tbody>
 
240
</table></div>
 
241
</div>
 
242
<hr>
 
243
<div class="refsect2" lang="en">
 
244
<a name="gnome-vfs-mime-get-all-applications-for-uri"></a><h3>gnome_vfs_mime_get_all_applications_for_uri ()</h3>
 
245
<pre class="programlisting">GList *             gnome_vfs_mime_get_all_applications_for_uri
 
246
                                                        (const char *uri,
 
247
                                                         const char *mime_type);</pre>
 
248
<p>
 
249
Return an alphabetically sorted list of <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a>
 
250
data structures representing all applications in the MIME database able
 
251
to handle the file identified by <em class="parameter"><code>uri</code></em> of <em class="parameter"><code>mime_type</code></em> (and supertypes).</p>
 
252
<p>
 
253
</p>
 
254
<div class="variablelist"><table border="0">
 
255
<col align="left" valign="top">
 
256
<tbody>
 
257
<tr>
 
258
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
 
259
<td> a stringified uri.
 
260
</td>
 
261
</tr>
 
262
<tr>
 
263
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
264
<td> a const char * containing a mime type, e.g. "application/x-php".
 
265
</td>
 
266
</tr>
 
267
<tr>
 
268
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
269
<td> a <span class="type">GList</span> * where the elements are <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> *
 
270
representing all possible handlers
 
271
 
 
272
</td>
 
273
</tr>
 
274
</tbody>
 
275
</table></div>
 
276
<p class="since">Since 2.10</p>
 
277
</div>
 
278
<hr>
 
279
<div class="refsect2" lang="en">
 
280
<a name="gnome-vfs-mime-get-all-desktop-entries"></a><h3>gnome_vfs_mime_get_all_desktop_entries ()</h3>
 
281
<pre class="programlisting">GList *             gnome_vfs_mime_get_all_desktop_entries
 
282
                                                        (const char *mime_type);</pre>
 
283
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
284
<h3 class="title">Warning</h3>
 
285
<p><code class="literal">gnome_vfs_mime_get_all_desktop_entries</code> is deprecated and should not be used in newly-written code.</p>
 
286
</div>
 
287
<p>
 
288
Returns all the desktop filenames for <em class="parameter"><code>mime_type</code></em>. The desktop files
 
289
are listed in an order so that default applications are listed before
 
290
non-default ones, and handlers for inherited mimetypes are listed
 
291
after the base ones.</p>
 
292
<p>
 
293
</p>
 
294
<div class="variablelist"><table border="0">
 
295
<col align="left" valign="top">
 
296
<tbody>
 
297
<tr>
 
298
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
299
<td> a mime type.
 
300
</td>
 
301
</tr>
 
302
<tr>
 
303
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
304
<td> a <span class="type">GList</span> containing the desktop filenames containing the
 
305
<em class="parameter"><code>mime_type</code></em>.
 
306
</td>
 
307
</tr>
 
308
</tbody>
 
309
</table></div>
 
310
</div>
 
311
<hr>
 
312
<div class="refsect2" lang="en">
 
313
<a name="gnome-vfs-mime-get-default-desktop-entry"></a><h3>gnome_vfs_mime_get_default_desktop_entry ()</h3>
 
314
<pre class="programlisting">gchar *             gnome_vfs_mime_get_default_desktop_entry
 
315
                                                        (const char *mime_type);</pre>
 
316
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
317
<h3 class="title">Warning</h3>
 
318
<p><code class="literal">gnome_vfs_mime_get_default_desktop_entry</code> is deprecated and should not be used in newly-written code.</p>
 
319
</div>
 
320
<p>
 
321
Returns the default desktop filename for <em class="parameter"><code>mime_type</code></em>.</p>
 
322
<p>
 
323
</p>
 
324
<div class="variablelist"><table border="0">
 
325
<col align="left" valign="top">
 
326
<tbody>
 
327
<tr>
 
328
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
329
<td> a mime type.
 
330
</td>
 
331
</tr>
 
332
<tr>
 
333
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
334
<td> the default desktop filename for <em class="parameter"><code>mime_type</code></em>.
 
335
</td>
 
336
</tr>
 
337
</tbody>
 
338
</table></div>
 
339
</div>
 
340
<hr>
 
341
<div class="refsect2" lang="en">
 
342
<a name="gnome-vfs-mime-get-default-component"></a><h3>gnome_vfs_mime_get_default_component ()</h3>
 
343
<pre class="programlisting">Bonobo_ServerInfo * gnome_vfs_mime_get_default_component
 
344
                                                        (const char *mime_type);</pre>
 
345
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
346
<h3 class="title">Warning</h3>
 
347
<p><code class="literal">gnome_vfs_mime_get_default_component</code> is deprecated and should not be used in newly-written code.</p>
 
348
</div>
 
349
<p>
 
350
</p>
 
351
<div class="variablelist"><table border="0">
 
352
<col align="left" valign="top">
 
353
<tbody>
 
354
<tr>
 
355
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
356
<td>
 
357
</td>
 
358
</tr>
 
359
<tr>
 
360
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
361
<td>
 
362
</td>
 
363
</tr>
 
364
</tbody>
 
365
</table></div>
 
366
</div>
 
367
<hr>
 
368
<div class="refsect2" lang="en">
 
369
<a name="gnome-vfs-mime-get-all-components"></a><h3>gnome_vfs_mime_get_all_components ()</h3>
 
370
<pre class="programlisting">GList *             gnome_vfs_mime_get_all_components   (const char *mime_type);</pre>
 
371
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
372
<h3 class="title">Warning</h3>
 
373
<p><code class="literal">gnome_vfs_mime_get_all_components</code> is deprecated and should not be used in newly-written code.</p>
 
374
</div>
 
375
<p>
 
376
</p>
 
377
<div class="variablelist"><table border="0">
 
378
<col align="left" valign="top">
 
379
<tbody>
 
380
<tr>
 
381
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
382
<td>
 
383
</td>
 
384
</tr>
 
385
<tr>
 
386
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
387
<td>
 
388
</td>
 
389
</tr>
 
390
</tbody>
 
391
</table></div>
 
392
</div>
 
393
<hr>
 
394
<div class="refsect2" lang="en">
 
395
<a name="gnome-vfs-mime-get-icon"></a><h3>gnome_vfs_mime_get_icon ()</h3>
 
396
<pre class="programlisting">const char *        gnome_vfs_mime_get_icon             (const char *mime_type);</pre>
 
397
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
398
<h3 class="title">Warning</h3>
 
399
<p><code class="literal">gnome_vfs_mime_get_icon</code> is deprecated and should not be used in newly-written code. Use <code class="function">gnome_icon_lookup()</code> function in libgnomeui instead.</p>
 
400
</div>
 
401
<p>
 
402
Query the MIME database for an icon representing the <em class="parameter"><code>mime_type</code></em>.
 
403
</p>
 
404
<p>
 
405
It usually returns a filename without path information, e.g. "i-chardev.png", and sometimes
 
406
does not have an extension, e.g. "i-regular" if the icon is supposed to be image
 
407
type agnostic between icon themes. Icons are generic and not theme specific. These
 
408
will not necessarily match with the icons a user sees in Nautilus, you have been warned.</p>
 
409
<p>
 
410
</p>
 
411
<div class="variablelist"><table border="0">
 
412
<col align="left" valign="top">
 
413
<tbody>
 
414
<tr>
 
415
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
416
<td> a const char * containing a  MIME type.
 
417
</td>
 
418
</tr>
 
419
<tr>
 
420
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
421
<td> The filename of the icon as listed in the MIME database.
 
422
 
 
423
</td>
 
424
</tr>
 
425
</tbody>
 
426
</table></div>
 
427
</div>
 
428
<hr>
 
429
<div class="refsect2" lang="en">
 
430
<a name="gnome-vfs-mime-get-description"></a><h3>gnome_vfs_mime_get_description ()</h3>
 
431
<pre class="programlisting">const char *        gnome_vfs_mime_get_description      (const char *mime_type);</pre>
 
432
<p>
 
433
Query the MIME database for a description of the <em class="parameter"><code>mime_type</code></em>.</p>
 
434
<p>
 
435
</p>
 
436
<div class="variablelist"><table border="0">
 
437
<col align="left" valign="top">
 
438
<tbody>
 
439
<tr>
 
440
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
441
<td> the mime type.
 
442
</td>
 
443
</tr>
 
444
<tr>
 
445
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
446
<td> description of MIME type <em class="parameter"><code>mime_type</code></em>.
 
447
</td>
 
448
</tr>
 
449
</tbody>
 
450
</table></div>
 
451
</div>
 
452
<hr>
 
453
<div class="refsect2" lang="en">
 
454
<a name="gnome-vfs-mime-can-be-executable"></a><h3>gnome_vfs_mime_can_be_executable ()</h3>
 
455
<pre class="programlisting">gboolean            gnome_vfs_mime_can_be_executable    (const char *mime_type);</pre>
 
456
<p>
 
457
Check whether files of <em class="parameter"><code>mime_type</code></em> might conceivably be executable.
 
458
Default for known types if <code class="literal">FALSE</code>. Default for unknown types is <code class="literal">TRUE</code>.</p>
 
459
<p>
 
460
</p>
 
461
<div class="variablelist"><table border="0">
 
462
<col align="left" valign="top">
 
463
<tbody>
 
464
<tr>
 
465
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
466
<td> a const char * containing a mime type.
 
467
</td>
 
468
</tr>
 
469
<tr>
 
470
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
471
<td> <code class="literal">TRUE</code> if files of <em class="parameter"><code>mime_type</code></em>
 
472
can be executable, <code class="literal">FALSE</code> otherwise.
 
473
</td>
 
474
</tr>
 
475
</tbody>
 
476
</table></div>
 
477
</div>
 
478
<hr>
 
479
<div class="refsect2" lang="en">
 
480
<a name="gnome-vfs-mime-application-new-from-desktop-id"></a><h3>gnome_vfs_mime_application_new_from_desktop_id ()</h3>
 
481
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * gnome_vfs_mime_application_new_from_desktop_id
 
482
                                                        (const char *id);</pre>
 
483
<p>
 
484
Returns a new <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> for the <em class="parameter"><code>id</code></em>.</p>
 
485
<p>
 
486
</p>
 
487
<div class="variablelist"><table border="0">
 
488
<col align="left" valign="top">
 
489
<tbody>
 
490
<tr>
 
491
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
 
492
<td> the identifier of a desktop entry.
 
493
</td>
 
494
</tr>
 
495
<tr>
 
496
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
497
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
498
 
 
499
</td>
 
500
</tr>
 
501
</tbody>
 
502
</table></div>
 
503
<p class="since">Since 2.10</p>
 
504
</div>
 
505
<hr>
 
506
<div class="refsect2" lang="en">
 
507
<a name="gnome-vfs-mime-application-launch"></a><h3>gnome_vfs_mime_application_launch ()</h3>
 
508
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a>      gnome_vfs_mime_application_launch   (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app,
 
509
                                                         GList *uris);</pre>
 
510
<p>
 
511
Launches the given mime application with the given parameters.
 
512
Command line parameters will be expanded as required by the
 
513
application. The application will also be launched in a terminal
 
514
if that is required. If the application only supports one argument 
 
515
per instance then multiple instances of the application will be 
 
516
launched.</p>
 
517
<p>
 
518
</p>
 
519
<div class="variablelist"><table border="0">
 
520
<col align="left" valign="top">
 
521
<tbody>
 
522
<tr>
 
523
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
524
<td> the <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> to launch.
 
525
</td>
 
526
</tr>
 
527
<tr>
 
528
<td><p><span class="term"><em class="parameter"><code>uris</code></em> :</span></p></td>
 
529
<td> parameters for the <span class="type">GnomeVFSMimeApplication.</span>
 
530
</td>
 
531
</tr>
 
532
<tr>
 
533
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
534
<td> 
 
535
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GNOME-VFS-OK:CAPS"><code class="literal">GNOME_VFS_OK</code></a> if the application was launched.
 
536
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GNOME-VFS-ERROR-NOT-SUPPORTED:CAPS"><code class="literal">GNOME_VFS_ERROR_NOT_SUPPORTED</code></a> if the uri protocol is not
 
537
supported by the application.
 
538
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GNOME-VFS-ERROR-PARSE:CAPS"><code class="literal">GNOME_VFS_ERROR_PARSE</code></a> if the application command can not
 
539
be parsed.
 
540
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GNOME-VFS-ERROR-LAUNCH:CAPS"><code class="literal">GNOME_VFS_ERROR_LAUNCH</code></a> if the application command can not
 
541
be launched.
 
542
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GNOME-VFS-ERROR-INTERNAL:CAPS"><code class="literal">GNOME_VFS_ERROR_INTERNAL</code></a> for other internal and GConf errors.
 
543
 
 
544
</td>
 
545
</tr>
 
546
</tbody>
 
547
</table></div>
 
548
<p class="since">Since 2.4</p>
 
549
</div>
 
550
<hr>
 
551
<div class="refsect2" lang="en">
 
552
<a name="gnome-vfs-mime-application-launch-with-env"></a><h3>gnome_vfs_mime_application_launch_with_env ()</h3>
 
553
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a>      gnome_vfs_mime_application_launch_with_env
 
554
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app,
 
555
                                                         GList *uris,
 
556
                                                         char **envp);</pre>
 
557
<p>
 
558
Same as <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-launch" title="gnome_vfs_mime_application_launch ()"><code class="function">gnome_vfs_mime_application_launch()</code></a> except that
 
559
the application will be launched with the given environment.</p>
 
560
<p>
 
561
</p>
 
562
<div class="variablelist"><table border="0">
 
563
<col align="left" valign="top">
 
564
<tbody>
 
565
<tr>
 
566
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
567
<td> the <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> to launch.
 
568
</td>
 
569
</tr>
 
570
<tr>
 
571
<td><p><span class="term"><em class="parameter"><code>uris</code></em> :</span></p></td>
 
572
<td> parameters for the <span class="type">GnomeVFSMimeApplication.</span>
 
573
</td>
 
574
</tr>
 
575
<tr>
 
576
<td><p><span class="term"><em class="parameter"><code>envp</code></em> :</span></p></td>
 
577
<td> the environment to use for the application.
 
578
</td>
 
579
</tr>
 
580
<tr>
 
581
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
582
<td> same as <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-launch" title="gnome_vfs_mime_application_launch ()"><code class="function">gnome_vfs_mime_application_launch()</code></a>.
 
583
 
 
584
</td>
 
585
</tr>
 
586
</tbody>
 
587
</table></div>
 
588
<p class="since">Since 2.4</p>
 
589
</div>
 
590
<hr>
 
591
<div class="refsect2" lang="en">
 
592
<a name="gnome-vfs-mime-application-get-desktop-id"></a><h3>gnome_vfs_mime_application_get_desktop_id ()</h3>
 
593
<pre class="programlisting">const char *        gnome_vfs_mime_application_get_desktop_id
 
594
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
 
595
<p>
 
596
Returns the identifier of the desktop entry.</p>
 
597
<p>
 
598
</p>
 
599
<div class="variablelist"><table border="0">
 
600
<col align="left" valign="top">
 
601
<tbody>
 
602
<tr>
 
603
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
604
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
605
</td>
 
606
</tr>
 
607
<tr>
 
608
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
609
<td> the identifier of the desktop entry.
 
610
 
 
611
</td>
 
612
</tr>
 
613
</tbody>
 
614
</table></div>
 
615
<p class="since">Since 2.10</p>
 
616
</div>
 
617
<hr>
 
618
<div class="refsect2" lang="en">
 
619
<a name="gnome-vfs-mime-application-get-desktop-file-path"></a><h3>gnome_vfs_mime_application_get_desktop_file_path ()</h3>
 
620
<pre class="programlisting">const char *        gnome_vfs_mime_application_get_desktop_file_path
 
621
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
 
622
<p>
 
623
Returns the path of the desktop entry, a configuration
 
624
file describing the properties of a particular program like
 
625
it's name, how it is to be launched, how it appears in menus.</p>
 
626
<p>
 
627
</p>
 
628
<div class="variablelist"><table border="0">
 
629
<col align="left" valign="top">
 
630
<tbody>
 
631
<tr>
 
632
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
633
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
634
</td>
 
635
</tr>
 
636
<tr>
 
637
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
638
<td> the path of the .desktop file.
 
639
 
 
640
</td>
 
641
</tr>
 
642
</tbody>
 
643
</table></div>
 
644
<p class="since">Since 2.10</p>
 
645
</div>
 
646
<hr>
 
647
<div class="refsect2" lang="en">
 
648
<a name="gnome-vfs-mime-application-get-name"></a><h3>gnome_vfs_mime_application_get_name ()</h3>
 
649
<pre class="programlisting">const char *        gnome_vfs_mime_application_get_name (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
 
650
<p>
 
651
Returns the name of the application <em class="parameter"><code>app</code></em></p>
 
652
<p>
 
653
</p>
 
654
<div class="variablelist"><table border="0">
 
655
<col align="left" valign="top">
 
656
<tbody>
 
657
<tr>
 
658
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
659
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
660
</td>
 
661
</tr>
 
662
<tr>
 
663
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
664
<td> the name of the application.
 
665
 
 
666
</td>
 
667
</tr>
 
668
</tbody>
 
669
</table></div>
 
670
<p class="since">Since 2.10</p>
 
671
</div>
 
672
<hr>
 
673
<div class="refsect2" lang="en">
 
674
<a name="gnome-vfs-mime-application-get-generic-name"></a><h3>gnome_vfs_mime_application_get_generic_name ()</h3>
 
675
<pre class="programlisting">const char *        gnome_vfs_mime_application_get_generic_name
 
676
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
 
677
<p>
 
678
Returns the generic name of the application.</p>
 
679
<p>
 
680
</p>
 
681
<div class="variablelist"><table border="0">
 
682
<col align="left" valign="top">
 
683
<tbody>
 
684
<tr>
 
685
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
686
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
687
</td>
 
688
</tr>
 
689
<tr>
 
690
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
691
<td> the generic name of the application.
 
692
 
 
693
</td>
 
694
</tr>
 
695
</tbody>
 
696
</table></div>
 
697
<p class="since">Since 2.10</p>
 
698
</div>
 
699
<hr>
 
700
<div class="refsect2" lang="en">
 
701
<a name="gnome-vfs-mime-application-get-icon"></a><h3>gnome_vfs_mime_application_get_icon ()</h3>
 
702
<pre class="programlisting">const char *        gnome_vfs_mime_application_get_icon (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
 
703
<p>
 
704
Returns an icon representing the specified application.</p>
 
705
<p>
 
706
</p>
 
707
<div class="variablelist"><table border="0">
 
708
<col align="left" valign="top">
 
709
<tbody>
 
710
<tr>
 
711
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
712
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
713
</td>
 
714
</tr>
 
715
<tr>
 
716
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
717
<td> the filename of the icon usually without path information,
 
718
e.g. "gedit-icon.png", and sometimes does not have an extension,
 
719
e.g. "gnome-pdf" if the icon is supposed to be image type agnostic between
 
720
icon themes. Icons are generic, and not theme specific.
 
721
 
 
722
</td>
 
723
</tr>
 
724
</tbody>
 
725
</table></div>
 
726
<p class="since">Since 2.10</p>
 
727
</div>
 
728
<hr>
 
729
<div class="refsect2" lang="en">
 
730
<a name="gnome-vfs-mime-application-get-exec"></a><h3>gnome_vfs_mime_application_get_exec ()</h3>
 
731
<pre class="programlisting">const char *        gnome_vfs_mime_application_get_exec (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
 
732
<p>
 
733
Returns the program to execute, possibly with arguments
 
734
and parameter variables, as specified by the
 
735
<a class="ulink" href="http://standards.freedesktop.org/desktop-entry-spec/" target="_top">
 
736
Desktop Entry Specification</a>.</p>
 
737
<p>
 
738
</p>
 
739
<div class="variablelist"><table border="0">
 
740
<col align="left" valign="top">
 
741
<tbody>
 
742
<tr>
 
743
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
744
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
745
</td>
 
746
</tr>
 
747
<tr>
 
748
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
749
<td> the command line to execute.
 
750
 
 
751
</td>
 
752
</tr>
 
753
</tbody>
 
754
</table></div>
 
755
<p class="since">Since 2.10</p>
 
756
</div>
 
757
<hr>
 
758
<div class="refsect2" lang="en">
 
759
<a name="gnome-vfs-mime-application-get-binary-name"></a><h3>gnome_vfs_mime_application_get_binary_name ()</h3>
 
760
<pre class="programlisting">const char *        gnome_vfs_mime_application_get_binary_name
 
761
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
 
762
<p>
 
763
Returns the binary name of the specified application.
 
764
Useful to implement startup notification.
 
765
Note that this only provides partial information about
 
766
application execution, it misses arguments and macros.
 
767
DO NOT USE it to launch the application.
 
768
Use gnome_vfs_mime_application_launch or
 
769
<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-exec" title="gnome_vfs_mime_application_get_exec ()"><code class="function">gnome_vfs_mime_application_get_exec()</code></a> if you really
 
770
need to write a custom launcher.</p>
 
771
<p>
 
772
</p>
 
773
<div class="variablelist"><table border="0">
 
774
<col align="left" valign="top">
 
775
<tbody>
 
776
<tr>
 
777
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
778
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
779
</td>
 
780
</tr>
 
781
<tr>
 
782
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
783
<td> the application's binary name.
 
784
 
 
785
</td>
 
786
</tr>
 
787
</tbody>
 
788
</table></div>
 
789
<p class="since">Since 2.10</p>
 
790
</div>
 
791
<hr>
 
792
<div class="refsect2" lang="en">
 
793
<a name="gnome-vfs-mime-application-requires-terminal"></a><h3>gnome_vfs_mime_application_requires_terminal ()</h3>
 
794
<pre class="programlisting">gboolean            gnome_vfs_mime_application_requires_terminal
 
795
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
 
796
<p>
 
797
Returns whether the application runs in a terminal window.</p>
 
798
<p>
 
799
</p>
 
800
<div class="variablelist"><table border="0">
 
801
<col align="left" valign="top">
 
802
<tbody>
 
803
<tr>
 
804
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
805
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
806
</td>
 
807
</tr>
 
808
<tr>
 
809
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
810
<td> <code class="literal">TRUE</code> if the application runs in a terminal.
 
811
 
 
812
</td>
 
813
</tr>
 
814
</tbody>
 
815
</table></div>
 
816
<p class="since">Since 2.10</p>
 
817
</div>
 
818
<hr>
 
819
<div class="refsect2" lang="en">
 
820
<a name="gnome-vfs-mime-application-supports-uris"></a><h3>gnome_vfs_mime_application_supports_uris ()</h3>
 
821
<pre class="programlisting">gboolean            gnome_vfs_mime_application_supports_uris
 
822
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
 
823
<p>
 
824
Returns whether the application accept uris as command
 
825
lines arguments.</p>
 
826
<p>
 
827
</p>
 
828
<div class="variablelist"><table border="0">
 
829
<col align="left" valign="top">
 
830
<tbody>
 
831
<tr>
 
832
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
833
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
834
</td>
 
835
</tr>
 
836
<tr>
 
837
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
838
<td> <code class="literal">TRUE</code> if the application can handle uris.
 
839
 
 
840
</td>
 
841
</tr>
 
842
</tbody>
 
843
</table></div>
 
844
<p class="since">Since 2.10</p>
 
845
</div>
 
846
<hr>
 
847
<div class="refsect2" lang="en">
 
848
<a name="gnome-vfs-mime-application-supports-startup-notification"></a><h3>gnome_vfs_mime_application_supports_startup_notification ()</h3>
 
849
<pre class="programlisting">gboolean            gnome_vfs_mime_application_supports_startup_notification
 
850
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
 
851
<p>
 
852
Returns whether the application supports startup notification.
 
853
If true, it is KNOWN that the application will send a
 
854
"remove" message when started with the DESKTOP_LAUNCH_ID
 
855
environment variable set.</p>
 
856
<p>
 
857
</p>
 
858
<div class="variablelist"><table border="0">
 
859
<col align="left" valign="top">
 
860
<tbody>
 
861
<tr>
 
862
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
863
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
864
</td>
 
865
</tr>
 
866
<tr>
 
867
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
868
<td> <code class="literal">TRUE</code> if the application supports startup notification.
 
869
 
 
870
</td>
 
871
</tr>
 
872
</tbody>
 
873
</table></div>
 
874
<p class="since">Since 2.10</p>
 
875
</div>
 
876
<hr>
 
877
<div class="refsect2" lang="en">
 
878
<a name="gnome-vfs-mime-application-get-startup-wm-class"></a><h3>gnome_vfs_mime_application_get_startup_wm_class ()</h3>
 
879
<pre class="programlisting">const char *        gnome_vfs_mime_application_get_startup_wm_class
 
880
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
 
881
<p>
 
882
Returns the WM class of the main window of the application.</p>
 
883
<p>
 
884
</p>
 
885
<div class="variablelist"><table border="0">
 
886
<col align="left" valign="top">
 
887
<tbody>
 
888
<tr>
 
889
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
 
890
<td> a <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a>
 
891
</td>
 
892
</tr>
 
893
<tr>
 
894
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
895
<td> The WM class of the application's window
 
896
 
 
897
</td>
 
898
</tr>
 
899
</tbody>
 
900
</table></div>
 
901
<p class="since">Since 2.10</p>
 
902
</div>
 
903
<hr>
 
904
<div class="refsect2" lang="en">
 
905
<a name="gnome-vfs-mime-application-equal"></a><h3>gnome_vfs_mime_application_equal ()</h3>
 
906
<pre class="programlisting">gboolean            gnome_vfs_mime_application_equal    (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app_a,
 
907
                                                         <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app_b);</pre>
 
908
<p>
 
909
Compare <em class="parameter"><code>app_a</code></em> and <em class="parameter"><code>app_b</code></em>.</p>
 
910
<p>
 
911
</p>
 
912
<div class="variablelist"><table border="0">
 
913
<col align="left" valign="top">
 
914
<tbody>
 
915
<tr>
 
916
<td><p><span class="term"><em class="parameter"><code>app_a</code></em> :</span></p></td>
 
917
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
918
</td>
 
919
</tr>
 
920
<tr>
 
921
<td><p><span class="term"><em class="parameter"><code>app_b</code></em> :</span></p></td>
 
922
<td> a <span class="type">GnomeVFSMimeApplication.</span>
 
923
</td>
 
924
</tr>
 
925
<tr>
 
926
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
927
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>app_a</code></em> and <em class="parameter"><code>app_b</code></em> are equal, <code class="literal">FALSE</code> otherwise.
 
928
 
 
929
</td>
 
930
</tr>
 
931
</tbody>
 
932
</table></div>
 
933
<p class="since">Since 2.10</p>
 
934
</div>
 
935
<hr>
 
936
<div class="refsect2" lang="en">
 
937
<a name="gnome-vfs-mime-application-copy"></a><h3>gnome_vfs_mime_application_copy ()</h3>
 
938
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * gnome_vfs_mime_application_copy
 
939
                                                        (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);</pre>
 
940
<p>
 
941
Creates a newly referenced copy of a <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> object.</p>
 
942
<p>
 
943
</p>
 
944
<div class="variablelist"><table border="0">
 
945
<col align="left" valign="top">
 
946
<tbody>
 
947
<tr>
 
948
<td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
 
949
<td> a <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> to be duplicated.
 
950
</td>
 
951
</tr>
 
952
<tr>
 
953
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
954
<td> a copy of <em class="parameter"><code>application</code></em>.
 
955
</td>
 
956
</tr>
 
957
</tbody>
 
958
</table></div>
 
959
</div>
 
960
<hr>
 
961
<div class="refsect2" lang="en">
 
962
<a name="gnome-vfs-mime-application-free"></a><h3>gnome_vfs_mime_application_free ()</h3>
 
963
<pre class="programlisting">void                gnome_vfs_mime_application_free     (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);</pre>
 
964
<p>
 
965
Frees a <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> *.</p>
 
966
<p>
 
967
</p>
 
968
<div class="variablelist"><table border="0">
 
969
<col align="left" valign="top">
 
970
<tbody><tr>
 
971
<td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
 
972
<td> a <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> to be freed.
 
973
</td>
 
974
</tr></tbody>
 
975
</table></div>
 
976
</div>
 
977
<hr>
 
978
<div class="refsect2" lang="en">
 
979
<a name="gnome-vfs-mime-application-list-free"></a><h3>gnome_vfs_mime_application_list_free ()</h3>
 
980
<pre class="programlisting">void                gnome_vfs_mime_application_list_free
 
981
                                                        (GList *list);</pre>
 
982
<p>
 
983
Frees lists of <span class="type">GnomeVFSApplications</span>, as returned from functions such
 
984
as <code class="function">gnome_vfs_get_all_applications()</code>.</p>
 
985
<p>
 
986
</p>
 
987
<div class="variablelist"><table border="0">
 
988
<col align="left" valign="top">
 
989
<tbody><tr>
 
990
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
 
991
<td> a <span class="type">GList</span> of <span class="type">GnomeVFSApplication</span> * to be freed.
 
992
</td>
 
993
</tr></tbody>
 
994
</table></div>
 
995
</div>
 
996
<hr>
 
997
<div class="refsect2" lang="en">
 
998
<a name="gnome-vfs-mime-component-list-free"></a><h3>gnome_vfs_mime_component_list_free ()</h3>
 
999
<pre class="programlisting">void                gnome_vfs_mime_component_list_free  (GList *list);</pre>
 
1000
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
1001
<h3 class="title">Warning</h3>
 
1002
<p><code class="literal">gnome_vfs_mime_component_list_free</code> is deprecated and should not be used in newly-written code.</p>
 
1003
</div>
 
1004
<p>
 
1005
</p>
 
1006
<div class="variablelist"><table border="0">
 
1007
<col align="left" valign="top">
 
1008
<tbody><tr>
 
1009
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
 
1010
<td>
 
1011
</td>
 
1012
</tr></tbody>
 
1013
</table></div>
 
1014
</div>
 
1015
</div>
 
1016
</div>
 
1017
<div class="footer">
 
1018
<hr>
 
1019
          Generated by GTK-Doc V1.12</div>
 
1020
</body>
 
1021
</html>