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

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a7903332 was a7903332, checked in by Xi Ruoyao <xry111@…>, 3 years ago

update to glib-2.68.4, and tagging dependencies

-Dselinux=false is no longer needed. And the sed is no longer needed.

  • Property mode set to 100644
File size: 8.6 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
8 "https://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-&desktop-file-utils-version;.tar.xz">
9 <!ENTITY desktop-file-utils-download-ftp " ">
10 <!ENTITY desktop-file-utils-md5sum "29739e005f5887cf41639b8450f3c23f">
11 <!ENTITY desktop-file-utils-size "84 KB">
12 <!ENTITY desktop-file-utils-buildsize "1.8 MB">
13 <!ENTITY desktop-file-utils-time "less than 0.1 SBU">
14]>
15
16<sect1 id="desktop-file-utils" xreflabel="desktop-file-utils-&desktop-file-utils-version;">
17 <?dbhtml filename="desktop-file-utils.html"?>
18
19 <sect1info>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>desktop-file-utils-&desktop-file-utils-version;</title>
24
25 <indexterm zone="desktop-file-utils">
26 <primary sortas="a-desktop-file-utils">desktop-file-utils</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Desktop File Utils</title>
31
32 <para>
33 The <application>Desktop File Utils</application> package contains
34 command line utilities for working with <ulink
35 url="http://standards.freedesktop.org/desktop-entry-spec/latest/">
36 Desktop entries</ulink>. These utilities are used by Desktop
37 Environments and other applications to manipulate the MIME-types
38 application databases and help adhere to the Desktop Entry
39 Specification.
40 </para>
41
42 &lfs110a_checked;
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>
48 Download (HTTP): <ulink url="&desktop-file-utils-download-http;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download (FTP): <ulink url="&desktop-file-utils-download-ftp;"/>
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download MD5 sum: &desktop-file-utils-md5sum;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Download size: &desktop-file-utils-size;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated disk space required: &desktop-file-utils-buildsize;
69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Estimated build time: &desktop-file-utils-time;
74 </para>
75 </listitem>
76 </itemizedlist>
77
78 <bridgehead renderas="sect3">Desktop File Utils Dependencies</bridgehead>
79
80 <bridgehead renderas="sect4">Required</bridgehead>
81 <para role="required">
82 <xref linkend="glib2"/>
83 </para>
84
85 <bridgehead renderas="sect4">Optional</bridgehead>
86 <para role="optional">
87 <xref linkend="emacs"/>
88 </para>
89
90 <para condition="html" role="usernotes">User Notes:
91 <ulink url="&blfs-wiki;/desktop-file-utils"/>
92 </para>
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of Desktop File Utils</title>
97
98 <warning>
99 <para>
100 If you are upgrading from a previous version of desktop-file-utils that
101 used the Autotools method of installing and configuring the package,
102 you must remove the desktop-file-edit symlink by using the following
103 commands.
104 </para>
105 </warning>
106 <!-- Works around a bug in meson's symlink creation exposed by this package -->
107
108<screen role="root"><userinput>rm -fv /usr/bin/desktop-file-edit</userinput></screen>
109
110 <para>
111 Install <application>Desktop File Utils</application> by
112 running the following commands:
113 </para>
114
115<screen><userinput>mkdir build &amp;&amp;
116cd build &amp;&amp;
117
118meson --prefix=/usr --buildtype=release .. &amp;&amp;
119ninja</userinput></screen>
120
121 <para>
122 This package does not come with a test suite.
123 </para>
124
125 <para>
126 Now, as the <systemitem class="username">root</systemitem> user:
127 </para>
128
129<screen role="root"><userinput>ninja install</userinput></screen>
130
131 </sect2>
132
133 <sect2 role="commands">
134 <title>Command Explanations</title>
135
136 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
137 href="../../xincludes/meson-buildtype-release.xml"/>
138 </sect2>
139
140 <sect2 role="configuration">
141 <title>Configuring Desktop File Utils</title>
142
143 <sect3>
144 <title>Configuration Information</title>
145
146 <para>
147 The <ulink
148 url="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html">XDG
149 Base Directory</ulink> specification defines the standard locations for
150 applications to place data and configuration files. These files can be
151 used, for instance, to define the menu structure and menu items in a
152 desktop environment.
153 </para>
154
155 <para>
156 The default location for configuration files to be installed
157 is <filename class="directory">/etc/xdg</filename>, and the default
158 locations for data files are <filename
159 class="directory">/usr/local/share</filename> and <filename
160 class="directory">/usr/share</filename>. These locations can be
161 extended with the environment variables <envar>XDG_CONFIG_DIRS</envar>
162 and <envar>XDG_DATA_DIRS</envar>, respectively. The
163 <application>GNOME</application>, <application>KDE</application> and
164 <application>XFCE</application> environments respect these
165 settings.
166 </para>
167
168 <para>
169 When a package installs a <filename>.desktop</filename> file
170 to a location in one of the base data directories, the database
171 that maps MIME-types to available applications can be updated. For
172 instance, the cache file at
173 <filename>/usr/share/applications/mimeinfo.cache</filename> can
174 be rebuilt by executing the following command as the <systemitem
175 class="username">root</systemitem> user:
176 </para>
177
178<screen role="root"><userinput>install -vdm755 /usr/share/applications &amp;&amp;
179update-desktop-database /usr/share/applications</userinput></screen>
180
181 </sect3>
182
183 </sect2>
184
185 <sect2 role="content">
186 <title>Contents</title>
187
188 <segmentedlist>
189 <segtitle>Installed Programs</segtitle>
190 <segtitle>Installed Libraries</segtitle>
191 <segtitle>Installed Directories</segtitle>
192
193 <seglistitem>
194 <seg>
195 desktop-file-edit, desktop-file-install,
196 desktop-file-validate and
197 update-desktop-database
198 </seg>
199 <seg>
200 None
201 </seg>
202 <seg>
203 None
204 </seg>
205 </seglistitem>
206 </segmentedlist>
207
208 <variablelist>
209 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
210 <?dbfo list-presentation="list"?>
211 <?dbhtml list-presentation="table"?>
212
213 <varlistentry id="desktop-file-edit">
214 <term><command>desktop-file-edit</command></term>
215 <listitem>
216 <para>
217 is used to modify an existing desktop file entry
218 </para>
219 <indexterm zone="desktop-file-utils desktop-file-edit">
220 <primary sortas="b-desktop-file-edit">desktop-file-edit</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="desktop-file-install">
226 <term><command>desktop-file-install</command></term>
227 <listitem>
228 <para>
229 is used to install a new desktop file entry. It is
230 also used to rebuild or modify the MIME-types application
231 database
232 </para>
233 <indexterm zone="desktop-file-utils desktop-file-install">
234 <primary sortas="b-desktop-file-install">desktop-file-install</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="desktop-file-validate">
240 <term><command>desktop-file-validate</command></term>
241 <listitem>
242 <para>
243 is used to verify the integrity of a desktop file
244 </para>
245 <indexterm zone="desktop-file-utils desktop-file-validate">
246 <primary sortas="b-desktop-file-validate">desktop-file-validate</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="update-desktop-database">
252 <term><command>update-desktop-database</command></term>
253 <listitem>
254 <para>
255 is used to update the MIME-types application database
256 </para>
257 <indexterm zone="desktop-file-utils update-desktop-database">
258 <primary sortas="b-update-desktop-database">update-desktop-database</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262 </variablelist>
263
264 </sect2>
265
266</sect1>
Note: See TracBrowser for help on using the repository browser.