add more spacing
[personal-kdebase.git] / runtime / doc / kcontrol / filetypes / index.docbook
blob67442382fa3ab43d675a7d3111719386cc502d13
1 <?xml version="1.0" ?>
2 <!DOCTYPE article PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN"
3 "dtd/kdex.dtd" [
4 <!ENTITY % addindex "IGNORE">
5 <!ENTITY % English "INCLUDE" > <!-- change language only here -->
6 ]>
8 <article lang="&language;">
9 <articleinfo>
11 <title>File Associations</title>
12 <authorgroup>
13 <author>&Mike.McBride; &Mike.McBride.mail;</author>
14 <!-- TRANS:ROLES_OF_TRANSLATORS -->
15 </authorgroup>
17 <date>2003-10-13</date>
18 <releaseinfo>3.2</releaseinfo>
20 <keywordset>
21 <keyword>KDE</keyword>
22 <keyword>KControl</keyword>
23 <keyword>files association</keyword>
24 <keyword>association</keyword>
25 </keywordset>
26 </articleinfo>
27 <sect1 id="file-assoc">
28 <title>File Associations</title>
30 <sect2 id="file-assoc-intro">
31 <title>Introduction</title>
33 <para>One of the most convenient aspects of &kde;, is its ability to
34 automatically match a data file, with its application. As an example,
35 when you click on your favorite &kword; document in &konqueror;, &kde;
36 automatically starts &kword;, and automatically loads that file into
37 &kword; so you can begin working on it.</para>
39 <para>In the example above, the &kword; Data file is
40 <emphasis>associated</emphasis> with &kword; (the application). These
41 file associations are crucial to the functioning of &kde;.</para>
43 <para>When &kde; is installed, it automatically creates hundreds of file
44 associations to many of the most common data types. These initial
45 associations are based on the most commonly included software, and the
46 most common user preferences.</para>
48 <para>Unfortunately, &kde; can not:</para>
50 <itemizedlist>
51 <listitem><para>predict every possible combination of software and data files</para></listitem>
52 <listitem><para>prepare for file formats not yet invented</para></listitem>
53 <listitem><para>or predict everyone's favorite application for certain file formats</para></listitem>
54 </itemizedlist>
56 <para>You can change your current file associations or add new file
57 associations using this module.</para>
59 <para>Each file association is recorded as a mime type.
60 &MIME; stands for <quote>Multipurpose Internet Mail
61 Extensions</quote>. It allows a computer to determine the type of file,
62 without opening and analyzing the format of each and every file.</para>
64 </sect2>
66 <sect2 id="file-assoc-use">
67 <title>How to use this module</title>
69 <para>The file associations are organized into several categories, and
70 at a minimum you will have:</para>
72 <orderedlist>
73 <listitem><para>Application</para></listitem>
74 <listitem><para>Audio</para></listitem>
75 <listitem><para>Image</para></listitem>
76 <listitem><para>Inode</para></listitem>
77 <listitem><para>Message</para></listitem>
78 <listitem><para>Multipart</para></listitem>
79 <listitem><para>Print</para></listitem>
80 <listitem><para>Text</para></listitem>
81 <listitem><para>Video</para></listitem>
82 </orderedlist>
84 <para>All of the file associations are sorted into one of these
85 categories.</para>
87 <para>There is also an overview category <quote>All</quote>, which
88 displays all the file types in one list, without categorizing
89 them.</para>
91 <note><para>There is no functional difference between any of the
92 categories. These categories are designed to help organize your file
93 associations, but they do not alter the associations in any way.
94 </para></note>
96 <para>The categories are listed in the box labeled <guilabel>Known
97 Types</guilabel>.</para>
99 <para>You can explore each of these categories, and see the file
100 associations contained within each one, by simply double-clicking on the
101 category name. You will be presented with a list of the associated
102 mime-types under that category.</para>
104 <tip><para>You can also search for a particular &MIME; type by using the
105 search box. The search box is labeled <guilabel>Find filename
106 pattern</guilabel> and is located above the category list.</para>
108 <para>Simply type the first letter of the &MIME; type you are interested
109 in. The categories are automatically expanded, and only the mime-types
110 that include that letter are displayed.</para>
112 <para>You can then enter a second character and the mime-types will be
113 further limited to mime types containing those two
114 characters.</para></tip>
116 <sect3 id="file-assoc-use-add">
117 <title>Adding a new mime type</title>
119 <para>If you want to add a new &MIME; type to your file associations,
120 you can click on the <guibutton>Add...</guibutton> button. A small
121 dialog box will appear. You select the category from the drop down
122 box, and type the &MIME; name in the blank labeled <guilabel>Type
123 name</guilabel>. Click <guibutton>OK</guibutton> to add the new mime
124 type, or click <guibutton>Cancel</guibutton> to not add any new
125 mime-types.</para>
127 </sect3>
129 <sect3 id="file-assoc-use-del">
130 <title>Removing a mime type</title>
132 <para>If you want to remove a &MIME; type, simply select the &MIME;
133 type you want to delete by clicking once with the mouse on the &MIME;
134 type name. Then click the button labeled
135 <guibutton>Remove</guibutton>. The &MIME; type will be deleted
136 immediately.</para>
138 </sect3>
140 <sect3 id="file-assoc-use-edit">
141 <title>Editing a mime types properties</title>
143 <para>Before you can edit a &MIME; types property, you must first
144 specify which &MIME; type. Simply browse through the categories until
145 you find the &MIME; type you want to edit, then click once on it with
146 the mouse.</para>
148 <para>As soon as you have selected the &MIME; type, the current values of
149 the &MIME; type will appear in the module window.</para>
151 <para>You will notice the current values are split into two tabs:
152 <guilabel>General</guilabel> and <guilabel>Embedding</guilabel></para>
154 <variablelist>
155 <varlistentry>
156 <term><guilabel>General</guilabel></term>
157 <listitem>
158 <para>There are 4 properties for each &MIME; type in this tab:</para>
160 <orderedlist>
161 <listitem><para><guilabel>Mime Type Icon</guilabel> is the icon that
162 will be visible when using &konqueror; as a file
163 manager.</para></listitem>
164 <listitem><para><guilabel>Filename Patterns</guilabel> is a search
165 pattern which &kde; will use to determine the &MIME; type.</para></listitem>
166 <listitem><para><guilabel>Description</guilabel> is a short description
167 of the file type. This is for your benefit only.</para></listitem>
168 <listitem><para><guilabel>Application Preference Order</guilabel>
169 determines which applications will be associated with the specified
170 &MIME; type.</para></listitem>
171 </orderedlist>
172 </listitem>
173 </varlistentry>
175 <varlistentry>
176 <term><guilabel>Embedding Tab</guilabel></term>
177 <listitem>
178 <para>The Embedding tab allows you to determine if a file will be
179 viewed within a &konqueror; window, or by starting the
180 application.</para>
181 </listitem>
182 </varlistentry>
183 </variablelist>
185 </sect3>
187 <sect3 id="file-assoc-use-icon">
188 <title>Changing the Icon</title>
190 <para>To change the icon, simply click on the Icon button. A dialog box
191 will appear, which will show you all available icons. Simply click once
192 with the mouse on the icon of your choice, and click
193 <guibutton>OK</guibutton>.</para>
195 </sect3>
197 <sect3 id="file-assoc-use-pattern">
198 <title>Editing the mime-type patterns</title>
200 <para>The box labeled <guilabel>Filename Patterns</guilabel>, determines
201 what files will be included within this mime-type.</para>
203 <para>Usually, files are selected based on their suffix. (Examples:
204 Files that end with <literal role="extension">.wav</literal> are sound
205 files, using the WAV format and files that end in <literal
206 role="extension">.c</literal> are program files written in C).</para>
208 <para>You should enter your filename mask in this combo box.</para>
210 <para>The asterisk (<literal>*</literal>) is a wildcard character that
211 will be used with nearly every mime type mask. A complete discussion
212 of wildcards is beyond the scope of this manual, but it is important
213 to understand that the asterisk (in this context),
214 <quote>matches</quote> any number of characters. As an example:
215 <userinput>*.pdf</userinput> will match
216 <filename>Datafile.pdf</filename>, <filename>Graphics.pdf</filename>
217 and <filename>User.pdf</filename>, but not <filename>PDF</filename>,
218 <filename>Datafile.PDF</filename>, or
219 <filename>.pdf</filename>.</para>
221 <tip><para>It is very beneficial to have multiple masks. One for lower
222 case, one for upper case, &etc; This will help ensure that &kde; can
223 determine the file type more accurately.</para></tip>
225 </sect3>
227 <sect3 id="file-assoc-use-desc">
228 <title>Editing a mime types description.</title>
230 <para>You can type a short description of the &MIME; type in the text
231 box labeled <guilabel>Description</guilabel>. This label is to help
232 you, it does not affect the function of the &MIME; type.</para>
234 </sect3>
236 <sect3 id="file-assoc-use-app">
237 <title>Editing the application associations</title>
239 <para>There are four buttons (<guibutton>Move Up</guibutton>,
240 <guibutton>Move Down</guibutton>, <guibutton>Add</guibutton> and
241 <guibutton>Remove</guibutton>) and a combo box (which lists the
242 applications) which are used to configure the applications.</para>
244 <para>The combo box lists all of the applications associated with a
245 specific &MIME; type. The list is in a specific order. The top
246 application is the first application tried. The next application down
247 the list is the second, etc.</para>
249 <note><para>What do you mean there is more than one application per
250 &MIME; type? Why is this necessary?</para>
252 <para>We started out by saying that &kde; comes preconfigured with
253 hundreds of file associations. The reality is, each system that &kde;
254 is installed on has a different selection of applications. By
255 allowing multiple associations per &MIME; type, &kde; can continue to
256 operate when a certain application is not installed on the
257 system.</para>
259 <para>As an example:</para>
260 <para>For the &MIME; type <literal>pdf</literal>, there are two
261 applications associated with this file type. The first program is
262 called <application>PS Viewer</application>. If your system does not
263 have <application>PS Viewer</application> installed, then &kde;
264 automatically starts the second application <application>Adobe Acrobat
265 Reader</application>. As you can see, this will help keep &kde; running
266 strong as you add and subtract applications.</para></note>
268 <para>We have established that the order is important. You can change
269 the order of the applications by clicking once with the mouse on the
270 application you want to move, and then clicking either <guibutton>Move
271 Up</guibutton> or <guibutton>Move Down</guibutton>. This will shift
272 the currently selected application up or down the list of
273 applications. </para>
275 <para>You can add new applications to the list by clicking the button
276 labeled <guibutton>Add</guibutton>. A dialog box will appear. Using the
277 dialog box, you can select the application you want to use for this mime
278 type. Click <guibutton>OK</guibutton> when you are done, and the
279 application will be added to the current list.</para>
281 <para>You can remove an application (thereby ensuring that the
282 application will never run with this &MIME; type by clicking once on the
283 name of the application, and clicking the <guibutton>Remove</guibutton>
284 button.</para>
286 <tip><para>It is a good idea to use the <guibutton>Move Up</guibutton>
287 and <guibutton>Move Down</guibutton> buttons to adjust the unwanted
288 application to a lower position in the list, rather than deleting the
289 application from the list entirely. Once you have deleted an
290 application, if your preferred application should become compromised,
291 there will not be an application to view the data document.</para></tip>
293 </sect3>
295 <sect3 id="file-assoc-embedding">
296 <title>Embedding</title>
297 <para>By clicking on the <guilabel>Embedding</guilabel> tab, you are
298 presented with three radio buttons in the <guilabel>Left click
299 action</guilabel> group. These determine how &konqueror; views the selected
300 &MIME; type:</para>
302 <variablelist>
303 <varlistentry><term>Show file in embedded viewer</term>
304 <listitem><para>If this is selected, the file will be shown <emphasis>within</emphasis> the &konqueror; window.</para></listitem></varlistentry>
305 <varlistentry><term>Show file in separate viewer</term>
306 <listitem><para>This will cause a separate window to be created when showing this mime-type.</para></listitem></varlistentry>
307 <varlistentry><term>Use group settings.</term>
308 <listitem><para>This will cause the mime-type to use the settings for the mime-type group.
309 (if you are editing an audio mime type, then the settings for the audio group are used).</para></listitem></varlistentry>
310 </variablelist>
312 <para>Below this is a listbox labeled <guilabel>Services Preference
313 Order</guilabel>.</para>
315 <para>When you are in &konqueror;, you can
316 <mousebutton>right</mousebutton> mouse click, and a menu will with an
317 entry labeled <guimenu>Preview with...</guimenu> will appear. This box
318 lists the applications that will appear, in the order they will
319 appear, under this menu.</para>
321 <para>You can use the <guibutton>Move Up</guibutton> and
322 <guibutton>Move Down</guibutton> buttons to change the order.</para>
324 </sect3>
326 <sect3 id="file-assoc-use-done">
327 <title>Making changes permanent</title>
329 <para>When you are done making any changes to mime types, you can click
330 <guibutton>Apply</guibutton> to make your changes permanent, but keep
331 you in this module.</para>
333 </sect3>
334 </sect2>
336 </sect1>
338 </article>