1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY desktop-file-utils-download-http "http://freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-&desktop-file-utils-version;.tar.gz">
|
---|
8 | <!ENTITY desktop-file-utils-download-ftp " ">
|
---|
9 | <!ENTITY desktop-file-utils-md5sum "2ee84d0de753d4052011714c20d6efae">
|
---|
10 | <!ENTITY desktop-file-utils-size "347 KB">
|
---|
11 | <!ENTITY desktop-file-utils-buildsize "3 MB">
|
---|
12 | <!ENTITY desktop-file-utils-time "less than 0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="desktop-file-utils"
|
---|
16 | xreflabel="desktop-file-utils-&desktop-file-utils-version;">
|
---|
17 | <?dbhtml filename="desktop-file-utils.html"?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy$</othername>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>desktop-file-utils-&desktop-file-utils-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="desktop-file-utils">
|
---|
27 | <primary sortas="a-Desktop-file-utils">Desktop-file-utils</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to desktop-file-utils</title>
|
---|
32 |
|
---|
33 | <para>The <application>desktop-file-utils</application> package contains
|
---|
34 | command line utilities for working with <ulink
|
---|
35 | url="http://www.freedesktop.org/Standards/desktop-entry-spec">desktop
|
---|
36 | entries</ulink>. These utilities are used by
|
---|
37 | <application>GNOME</application>-2 and other applications
|
---|
38 | to manipulate the MIME-types application databases and help
|
---|
39 | adhere to the Desktop Entry Specification.</para>
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>Download (HTTP): <ulink url="&desktop-file-utils-download-http;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download (FTP): <ulink url="&desktop-file-utils-download-ftp;"/></para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download MD5 sum: &desktop-file-utils-md5sum;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Download size: &desktop-file-utils-size;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated disk space required: &desktop-file-utils-buildsize;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Estimated build time: &desktop-file-utils-time;</para>
|
---|
60 | </listitem>
|
---|
61 | </itemizedlist>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect3">desktop-file-utils Dependencies</bridgehead>
|
---|
64 |
|
---|
65 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
66 | <para role="required"><xref linkend="glib2"/></para>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
69 | <para role="optional"><xref linkend="emacs"/></para>
|
---|
70 |
|
---|
71 | <para condition="html" role="usernotes">User Notes:
|
---|
72 | <ulink url="&blfs-wiki;/desktop-file-utils"/></para>
|
---|
73 |
|
---|
74 | </sect2>
|
---|
75 |
|
---|
76 | <sect2 role="installation">
|
---|
77 | <title>Installation of desktop-file-utils</title>
|
---|
78 |
|
---|
79 | <para>Install <application>desktop-file-utils</application> by running the
|
---|
80 | following commands:</para>
|
---|
81 |
|
---|
82 | <screen><userinput>./configure --prefix=/usr &&
|
---|
83 | make</userinput></screen>
|
---|
84 |
|
---|
85 | <para>This package does not come with a test suite.</para>
|
---|
86 |
|
---|
87 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
88 |
|
---|
89 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
90 |
|
---|
91 | </sect2>
|
---|
92 |
|
---|
93 | <sect2 role="configuration">
|
---|
94 | <title>Configuring desktop-file-utils</title>
|
---|
95 |
|
---|
96 | <sect3>
|
---|
97 | <title>Configuration Information</title>
|
---|
98 |
|
---|
99 | <!-- Background for the XDG_* settings can be found in #2172 -->
|
---|
100 |
|
---|
101 | <para>The <ulink
|
---|
102 | url="http://freedesktop.org/wiki/Standards/basedir-spec">XDG Base
|
---|
103 | Directory</ulink> specification defines the standard locations for
|
---|
104 | applications to place data and configuration files. These files can
|
---|
105 | be used, for instance, to define the menu structure and menu items
|
---|
106 | in a desktop environment.</para>
|
---|
107 |
|
---|
108 | <para>The default location for configuration files to be installed
|
---|
109 | is <filename class="directory">/etc/xdg</filename>, and the default
|
---|
110 | locations for data files are <filename
|
---|
111 | class="directory">/usr/local/share</filename> and <filename
|
---|
112 | class="directory">/usr/share</filename>. These locations can be
|
---|
113 | extended with the environment variables <envar>XDG_CONFIG_DIRS</envar>
|
---|
114 | and <envar>XDG_DATA_DIRS</envar>, respectively. The
|
---|
115 | <application>GNOME</application>, <application>KDE</application> and
|
---|
116 | <application>XFCE</application> environments respect respect these
|
---|
117 | settings. Update the <envar>XDG_DATA_DIRS</envar> (if necessary) and
|
---|
118 | <envar>XDG_CONFIG_DIRS</envar> environment variables so that the
|
---|
119 | additional MIME-types application databases and desktop menu files are
|
---|
120 | properly maintained and discovered by adding the following to the
|
---|
121 | system-wide or personal profile:</para>
|
---|
122 |
|
---|
123 | <para>For <application>GNOME</application>:</para>
|
---|
124 |
|
---|
125 | <screen><literal>XDG_DATA_DIRS=$GNOME_PREFIX/share:/usr/local/share:/usr/share
|
---|
126 | XDG_CONFIG_DIRS=&gnome-etc-dir;/xdg:/etc/xdg
|
---|
127 | export XDG_DATA_DIRS XDG_CONFIG_DIRS</literal></screen>
|
---|
128 |
|
---|
129 | <para>For <application>KDE</application>:</para>
|
---|
130 |
|
---|
131 | <screen><literal>XDG_DATA_DIRS=$KDE_PREFIX/share:/usr/local/share:/usr/share
|
---|
132 | XDG_CONFIG_DIRS=/etc/kde/xdg:/etc/xdg
|
---|
133 | export XDG_DATA_DIRS XDG_CONFIG_DIRS</literal></screen>
|
---|
134 |
|
---|
135 | <para>For <application>XFCE</application>, the default locations
|
---|
136 | should be appropriate if the instructions in the BLFS book were
|
---|
137 | followed.</para>
|
---|
138 |
|
---|
139 | <!-- This ends up messing up the menus and the GNOME and KDE stuff is simply
|
---|
140 | not yet interchangeable
|
---|
141 |
|
---|
142 | <para>If you're installing both <application>GNOME</application> and
|
---|
143 | <application>KDE</application>:</para>
|
---|
144 |
|
---|
145 | <screen><literal>XDG_DATA_DIRS=$XDG_DATA_DIRS:$GNOME_PREFIX/share:$KDE_PREFIX/share
|
---|
146 | export XDG_DATA_DIRS</literal></screen>
|
---|
147 |
|
---|
148 | -->
|
---|
149 |
|
---|
150 | <para>When a package installs a <filename>.desktop</filename> file
|
---|
151 | to a location in one of the base data directories, the database
|
---|
152 | that maps MIME-types to available applications can be updated. For
|
---|
153 | instance, the cache file at
|
---|
154 | <filename>/usr/share/applications/mimeinfo.cache</filename> can
|
---|
155 | be rebuilt by executing the following command as the <systemitem
|
---|
156 | class="username">root</systemitem> user:</para>
|
---|
157 |
|
---|
158 | <screen role="root"><userinput>update-desktop-database /usr/share/applications</userinput></screen>
|
---|
159 |
|
---|
160 | </sect3>
|
---|
161 |
|
---|
162 | </sect2>
|
---|
163 |
|
---|
164 | <sect2 role="content">
|
---|
165 | <title>Contents</title>
|
---|
166 |
|
---|
167 | <segmentedlist>
|
---|
168 | <segtitle>Installed Programs</segtitle>
|
---|
169 | <segtitle>Installed Libraries</segtitle>
|
---|
170 | <segtitle>Installed Directories</segtitle>
|
---|
171 |
|
---|
172 | <seglistitem>
|
---|
173 | <seg>desktop-file-install, desktop-file-validate, and
|
---|
174 | update-desktop-database</seg>
|
---|
175 | <seg>None</seg>
|
---|
176 | <seg>None</seg>
|
---|
177 | </seglistitem>
|
---|
178 | </segmentedlist>
|
---|
179 |
|
---|
180 | <variablelist>
|
---|
181 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
182 | <?dbfo list-presentation="list"?>
|
---|
183 | <?dbhtml list-presentation="table"?>
|
---|
184 |
|
---|
185 | <varlistentry id="desktop-file-install">
|
---|
186 | <term><command>desktop-file-install</command></term>
|
---|
187 | <listitem>
|
---|
188 | <para>is used to install a new, or modify an existing desktop file
|
---|
189 | entry. It is also used to rebuild or modify the MIME-types
|
---|
190 | application database.</para>
|
---|
191 | <indexterm zone="desktop-file-utils desktop-file-install">
|
---|
192 | <primary sortas="b-desktop-file-install">desktop-file-install</primary>
|
---|
193 | </indexterm>
|
---|
194 | </listitem>
|
---|
195 | </varlistentry>
|
---|
196 |
|
---|
197 | <varlistentry id="desktop-file-validate">
|
---|
198 | <term><command>desktop-file-validate</command></term>
|
---|
199 | <listitem>
|
---|
200 | <para>is used to verify the integrity of a desktop file.</para>
|
---|
201 | <indexterm zone="desktop-file-utils desktop-file-validate">
|
---|
202 | <primary sortas="b-desktop-file-validate">desktop-file-validate</primary>
|
---|
203 | </indexterm>
|
---|
204 | </listitem>
|
---|
205 | </varlistentry>
|
---|
206 |
|
---|
207 | <varlistentry id="update-desktop-database">
|
---|
208 | <term><command>update-desktop-database</command></term>
|
---|
209 | <listitem>
|
---|
210 | <para>is used to update the MIME-types
|
---|
211 | application database.</para>
|
---|
212 | <indexterm zone="desktop-file-utils update-desktop-database">
|
---|
213 | <primary sortas="b-update-desktop-database">update-desktop-database</primary>
|
---|
214 | </indexterm>
|
---|
215 | </listitem>
|
---|
216 | </varlistentry>
|
---|
217 | </variablelist>
|
---|
218 |
|
---|
219 | </sect2>
|
---|
220 |
|
---|
221 | </sect1>
|
---|