source: general/genutils/desktop-file-utils.xml@ 1ef3927

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 1ef3927 was 1ef3927, checked in by Randy McMurchy <randy@…>, 13 years ago

Updated to desktop-file-utils-0.17

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8699 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.3 KB
Line 
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.bz2">
8 <!ENTITY desktop-file-utils-download-ftp " ">
9 <!ENTITY desktop-file-utils-md5sum "758fa842643d2e592d2fccba6e69a991">
10 <!ENTITY desktop-file-utils-size "280 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"
16xreflabel="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 &lfs65_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>Download (HTTP): <ulink url="&desktop-file-utils-download-http;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download (FTP): <ulink url="&desktop-file-utils-download-ftp;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download MD5 sum: &desktop-file-utils-md5sum;</para>
53 </listitem>
54 <listitem>
55 <para>Download size: &desktop-file-utils-size;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated disk space required: &desktop-file-utils-buildsize;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated build time: &desktop-file-utils-time;</para>
62 </listitem>
63 </itemizedlist>
64
65 <bridgehead renderas="sect3">desktop-file-utils Dependencies</bridgehead>
66
67 <bridgehead renderas="sect4">Required</bridgehead>
68 <para role="required"><xref linkend="glib2"/></para>
69
70 <bridgehead renderas="sect4">Optional</bridgehead>
71 <para role="optional"><xref linkend="emacs"/></para>
72
73 <para condition="html" role="usernotes">User Notes:
74 <ulink url="&blfs-wiki;/desktop-file-utils"/></para>
75
76 </sect2>
77
78 <sect2 role="installation">
79 <title>Installation of desktop-file-utils</title>
80
81 <para>Install <application>desktop-file-utils</application> by running the
82 following commands:</para>
83
84<screen><userinput>./configure --prefix=/usr &amp;&amp;
85make</userinput></screen>
86
87 <para>This package does not come with a test suite.</para>
88
89 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
90
91<screen role="root"><userinput>make install</userinput></screen>
92
93 </sect2>
94
95 <sect2 role="configuration">
96 <title>Configuring desktop-file-utils</title>
97
98 <sect3>
99 <title>Configuration Information</title>
100
101 <!-- Background for the XDG_* settings can be found in #2172 -->
102
103 <para>The <ulink
104 url="http://freedesktop.org/wiki/Standards/basedir-spec">XDG Base
105 Directory</ulink> specification defines the standard locations for
106 applications to place data and configuration files. These files can
107 be used, for instance, to define the menu structure and menu items
108 in a desktop environment.</para>
109
110 <para>The default location for configuration files to be installed
111 is <filename class="directory">/etc/xdg</filename>, and the default
112 locations for data files are <filename
113 class="directory">/usr/local/share</filename> and <filename
114 class="directory">/usr/share</filename>. These locations can be
115 extended with the environment variables <envar>XDG_CONFIG_DIRS</envar>
116 and <envar>XDG_DATA_DIRS</envar>, respectively. The
117 <application>GNOME</application>, <application>KDE</application> and
118 <application>XFCE</application> environments respect these
119 settings. Update the <envar>XDG_DATA_DIRS</envar> (if necessary) and
120 <envar>XDG_CONFIG_DIRS</envar> environment variables so that the
121 additional MIME-types application databases and desktop menu files are
122 properly maintained and discovered by adding the following to the
123 system-wide or personal profile:</para>
124
125 <para>For <application>GNOME</application>:</para>
126
127<screen><literal>XDG_DATA_DIRS=$GNOME_PREFIX/share:/usr/local/share:/usr/share
128XDG_CONFIG_DIRS=&gnome-etc-dir;/xdg:/etc/xdg
129export XDG_DATA_DIRS XDG_CONFIG_DIRS</literal></screen>
130
131 <para>For <application>KDE</application>:</para>
132
133<screen><literal>XDG_DATA_DIRS=$KDE_PREFIX/share:/usr/local/share:/usr/share
134XDG_CONFIG_DIRS=/etc/kde/xdg:/etc/xdg
135export XDG_DATA_DIRS XDG_CONFIG_DIRS</literal></screen>
136
137 <para>For <application>XFCE</application>, the default locations
138 should be appropriate if the instructions in the BLFS book were
139 followed.</para>
140
141<!-- This ends up messing up the menus and the GNOME and KDE stuff is simply
142 not yet interchangeable
143
144 <para>If you're installing both <application>GNOME</application> and
145 <application>KDE</application>:</para>
146
147<screen><literal>XDG_DATA_DIRS=$XDG_DATA_DIRS:$GNOME_PREFIX/share:$KDE_PREFIX/share
148export XDG_DATA_DIRS</literal></screen>
149
150-->
151
152 <para>When a package installs a <filename>.desktop</filename> file
153 to a location in one of the base data directories, the database
154 that maps MIME-types to available applications can be updated. For
155 instance, the cache file at
156 <filename>/usr/share/applications/mimeinfo.cache</filename> can
157 be rebuilt by executing the following command as the <systemitem
158 class="username">root</systemitem> user:</para>
159
160<screen role="root"><userinput>update-desktop-database /usr/share/applications</userinput></screen>
161
162 </sect3>
163
164 </sect2>
165
166 <sect2 role="content">
167 <title>Contents</title>
168
169 <segmentedlist>
170 <segtitle>Installed Programs</segtitle>
171 <segtitle>Installed Libraries</segtitle>
172 <segtitle>Installed Directories</segtitle>
173
174 <seglistitem>
175 <seg>desktop-file-install, desktop-file-validate, and
176 update-desktop-database</seg>
177 <seg>None</seg>
178 <seg>None</seg>
179 </seglistitem>
180 </segmentedlist>
181
182 <variablelist>
183 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
184 <?dbfo list-presentation="list"?>
185 <?dbhtml list-presentation="table"?>
186
187 <varlistentry id="desktop-file-install">
188 <term><command>desktop-file-install</command></term>
189 <listitem>
190 <para>is used to install a new, or modify an existing desktop file
191 entry. It is also used to rebuild or modify the MIME-types
192 application database.</para>
193 <indexterm zone="desktop-file-utils desktop-file-install">
194 <primary sortas="b-desktop-file-install">desktop-file-install</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="desktop-file-validate">
200 <term><command>desktop-file-validate</command></term>
201 <listitem>
202 <para>is used to verify the integrity of a desktop file.</para>
203 <indexterm zone="desktop-file-utils desktop-file-validate">
204 <primary sortas="b-desktop-file-validate">desktop-file-validate</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="update-desktop-database">
210 <term><command>update-desktop-database</command></term>
211 <listitem>
212 <para>is used to update the MIME-types
213 application database.</para>
214 <indexterm zone="desktop-file-utils update-desktop-database">
215 <primary sortas="b-update-desktop-database">update-desktop-database</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219 </variablelist>
220
221 </sect2>
222
223</sect1>
Note: See TracBrowser for help on using the repository browser.