[c87e4dd] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[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 " ">
|
---|
[d72b599] | 10 | <!ENTITY desktop-file-utils-md5sum "29739e005f5887cf41639b8450f3c23f">
|
---|
| 11 | <!ENTITY desktop-file-utils-size "84 KB">
|
---|
[166d300] | 12 | <!ENTITY desktop-file-utils-buildsize "1.8 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 |
|
---|
[a9779b9] | 39 | &lfs120_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 |
|
---|
[849543ca] | 75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 76 | <itemizedlist spacing="compact">
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>
|
---|
| 79 | Required patch:
|
---|
| 80 | <ulink url="&patch-root;/desktop-file-utils-&desktop-file-utils-version;-update_standard-1.patch"/>
|
---|
| 81 | </para>
|
---|
| 82 | </listitem>
|
---|
| 83 | </itemizedlist>
|
---|
| 84 |
|
---|
[bfa83aee] | 85 | <bridgehead renderas="sect3">Desktop File Utils Dependencies</bridgehead>
|
---|
[832dcb80] | 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[bfa83aee] | 88 | <para role="required">
|
---|
| 89 | <xref linkend="glib2"/>
|
---|
| 90 | </para>
|
---|
[fc7afd0c] | 91 |
|
---|
[a149f6fe] | 92 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[bfa83aee] | 93 | <para role="optional">
|
---|
| 94 | <xref linkend="emacs"/>
|
---|
| 95 | </para>
|
---|
[fc7afd0c] | 96 |
|
---|
[a149f6fe] | 97 | </sect2>
|
---|
[fc7afd0c] | 98 |
|
---|
[a149f6fe] | 99 | <sect2 role="installation">
|
---|
[bfa83aee] | 100 | <title>Installation of Desktop File Utils</title>
|
---|
[a149f6fe] | 101 |
|
---|
[d72b599] | 102 | <warning>
|
---|
| 103 | <para>
|
---|
| 104 | If you are upgrading from a previous version of desktop-file-utils that
|
---|
| 105 | used the Autotools method of installing and configuring the package,
|
---|
| 106 | you must remove the desktop-file-edit symlink by using the following
|
---|
| 107 | commands.
|
---|
| 108 | </para>
|
---|
| 109 | </warning>
|
---|
| 110 | <!-- Works around a bug in meson's symlink creation exposed by this package -->
|
---|
| 111 |
|
---|
[b69cf463] | 112 | <screen role="root"><userinput>rm -fv /usr/bin/desktop-file-edit</userinput></screen>
|
---|
[d72b599] | 113 |
|
---|
[849543ca] | 114 | <para>
|
---|
| 115 | Next, update the version of the desktop file standard to accept the
|
---|
| 116 | SingleMainWindow key:
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <screen><userinput remap="pre">patch -Np1 -i ../desktop-file-utils-&desktop-file-utils-version;-update_standard-1.patch</userinput></screen>
|
---|
| 120 |
|
---|
[bfa83aee] | 121 | <para>
|
---|
| 122 | Install <application>Desktop File Utils</application> by
|
---|
| 123 | running the following commands:
|
---|
| 124 | </para>
|
---|
[a149f6fe] | 125 |
|
---|
[d72b599] | 126 | <screen><userinput>mkdir build &&
|
---|
| 127 | cd build &&
|
---|
| 128 |
|
---|
[91318eb] | 129 | meson setup --prefix=/usr --buildtype=release .. &&
|
---|
[d72b599] | 130 | ninja</userinput></screen>
|
---|
[fc7afd0c] | 131 |
|
---|
[bfa83aee] | 132 | <para>
|
---|
| 133 | This package does not come with a test suite.
|
---|
| 134 | </para>
|
---|
[e639150] | 135 |
|
---|
[bfa83aee] | 136 | <para>
|
---|
| 137 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 138 | </para>
|
---|
[fc7afd0c] | 139 |
|
---|
[d72b599] | 140 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[fc7afd0c] | 141 |
|
---|
[a149f6fe] | 142 | </sect2>
|
---|
[fc7afd0c] | 143 |
|
---|
[20f070d8] | 144 | <sect2 role="commands">
|
---|
| 145 | <title>Command Explanations</title>
|
---|
| 146 |
|
---|
| 147 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 148 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 149 | </sect2>
|
---|
| 150 |
|
---|
[a149f6fe] | 151 | <sect2 role="configuration">
|
---|
[bfa83aee] | 152 | <title>Configuring Desktop File Utils</title>
|
---|
[fc7afd0c] | 153 |
|
---|
[a149f6fe] | 154 | <sect3>
|
---|
| 155 | <title>Configuration Information</title>
|
---|
[fc7afd0c] | 156 |
|
---|
[bfa83aee] | 157 | <para>
|
---|
| 158 | The <ulink
|
---|
[b3d0dbd] | 159 | url="https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html">XDG
|
---|
[3438a47a] | 160 | Base Directory</ulink> specification defines the standard locations for
|
---|
| 161 | applications to place data and configuration files. These files can be
|
---|
| 162 | used, for instance, to define the menu structure and menu items in a
|
---|
| 163 | desktop environment.
|
---|
[bfa83aee] | 164 | </para>
|
---|
| 165 |
|
---|
| 166 | <para>
|
---|
| 167 | The default location for configuration files to be installed
|
---|
| 168 | is <filename class="directory">/etc/xdg</filename>, and the default
|
---|
| 169 | locations for data files are <filename
|
---|
| 170 | class="directory">/usr/local/share</filename> and <filename
|
---|
| 171 | class="directory">/usr/share</filename>. These locations can be
|
---|
| 172 | extended with the environment variables <envar>XDG_CONFIG_DIRS</envar>
|
---|
| 173 | and <envar>XDG_DATA_DIRS</envar>, respectively. The
|
---|
| 174 | <application>GNOME</application>, <application>KDE</application> and
|
---|
| 175 | <application>XFCE</application> environments respect these
|
---|
| 176 | settings.
|
---|
| 177 | </para>
|
---|
| 178 |
|
---|
| 179 | <para>
|
---|
| 180 | When a package installs a <filename>.desktop</filename> file
|
---|
| 181 | to a location in one of the base data directories, the database
|
---|
| 182 | that maps MIME-types to available applications can be updated. For
|
---|
| 183 | instance, the cache file at
|
---|
| 184 | <filename>/usr/share/applications/mimeinfo.cache</filename> can
|
---|
| 185 | be rebuilt by executing the following command as the <systemitem
|
---|
| 186 | class="username">root</systemitem> user:
|
---|
| 187 | </para>
|
---|
[99c190b] | 188 |
|
---|
[515cc58] | 189 | <screen role="root"><userinput>install -vdm755 /usr/share/applications &&
|
---|
| 190 | update-desktop-database /usr/share/applications</userinput></screen>
|
---|
[99c190b] | 191 |
|
---|
[a149f6fe] | 192 | </sect3>
|
---|
[fc7afd0c] | 193 |
|
---|
[a149f6fe] | 194 | </sect2>
|
---|
[fc7afd0c] | 195 |
|
---|
[a149f6fe] | 196 | <sect2 role="content">
|
---|
| 197 | <title>Contents</title>
|
---|
| 198 |
|
---|
| 199 | <segmentedlist>
|
---|
| 200 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 201 | <segtitle>Installed Libraries</segtitle>
|
---|
| 202 | <segtitle>Installed Directories</segtitle>
|
---|
[fc7afd0c] | 203 |
|
---|
[a149f6fe] | 204 | <seglistitem>
|
---|
[bfa83aee] | 205 | <seg>
|
---|
[0d7900a] | 206 | desktop-file-edit, desktop-file-install,
|
---|
[bfa83aee] | 207 | desktop-file-validate and
|
---|
| 208 | update-desktop-database
|
---|
[2a05c87] | 209 | </seg>
|
---|
[c3c56b2] | 210 | <seg>
|
---|
| 211 | None
|
---|
| 212 | </seg>
|
---|
| 213 | <seg>
|
---|
| 214 | None
|
---|
| 215 | </seg>
|
---|
[a149f6fe] | 216 | </seglistitem>
|
---|
| 217 | </segmentedlist>
|
---|
[fc7afd0c] | 218 |
|
---|
[a149f6fe] | 219 | <variablelist>
|
---|
| 220 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 221 | <?dbfo list-presentation="list"?>
|
---|
| 222 | <?dbhtml list-presentation="table"?>
|
---|
[fc7afd0c] | 223 |
|
---|
[2a05c87] | 224 | <varlistentry id="desktop-file-edit">
|
---|
| 225 | <term><command>desktop-file-edit</command></term>
|
---|
| 226 | <listitem>
|
---|
[bfa83aee] | 227 | <para>
|
---|
[4c24eb0a] | 228 | is used to modify an existing desktop file entry
|
---|
[bfa83aee] | 229 | </para>
|
---|
[2a05c87] | 230 | <indexterm zone="desktop-file-utils desktop-file-edit">
|
---|
| 231 | <primary sortas="b-desktop-file-edit">desktop-file-edit</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
[a149f6fe] | 236 | <varlistentry id="desktop-file-install">
|
---|
| 237 | <term><command>desktop-file-install</command></term>
|
---|
| 238 | <listitem>
|
---|
[bfa83aee] | 239 | <para>
|
---|
[0d7900a] | 240 | is used to install a new desktop file entry. It is
|
---|
| 241 | also used to rebuild or modify the MIME-types application
|
---|
[4c24eb0a] | 242 | database
|
---|
[bfa83aee] | 243 | </para>
|
---|
[a149f6fe] | 244 | <indexterm zone="desktop-file-utils desktop-file-install">
|
---|
| 245 | <primary sortas="b-desktop-file-install">desktop-file-install</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
[fc7afd0c] | 249 |
|
---|
[a149f6fe] | 250 | <varlistentry id="desktop-file-validate">
|
---|
| 251 | <term><command>desktop-file-validate</command></term>
|
---|
| 252 | <listitem>
|
---|
[bfa83aee] | 253 | <para>
|
---|
[4c24eb0a] | 254 | is used to verify the integrity of a desktop file
|
---|
[bfa83aee] | 255 | </para>
|
---|
[a149f6fe] | 256 | <indexterm zone="desktop-file-utils desktop-file-validate">
|
---|
| 257 | <primary sortas="b-desktop-file-validate">desktop-file-validate</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
[fc7afd0c] | 261 |
|
---|
[a149f6fe] | 262 | <varlistentry id="update-desktop-database">
|
---|
| 263 | <term><command>update-desktop-database</command></term>
|
---|
| 264 | <listitem>
|
---|
[bfa83aee] | 265 | <para>
|
---|
[4c24eb0a] | 266 | is used to update the MIME-types application database
|
---|
[bfa83aee] | 267 | </para>
|
---|
[a149f6fe] | 268 | <indexterm zone="desktop-file-utils update-desktop-database">
|
---|
| 269 | <primary sortas="b-update-desktop-database">update-desktop-database</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 | </variablelist>
|
---|
| 274 |
|
---|
| 275 | </sect2>
|
---|
[c87e4dd] | 276 |
|
---|
| 277 | </sect1>
|
---|