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