[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 " ">
|
---|
[9318937b] | 10 | <!ENTITY desktop-file-utils-md5sum "599133d51cc9a41bfec186414906b6f1">
|
---|
| 11 | <!ENTITY desktop-file-utils-size "132 KB">
|
---|
| 12 | <!ENTITY desktop-file-utils-buildsize "1.9 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 |
|
---|
[a149f6fe] | 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
[fc7afd0c] | 23 |
|
---|
[832dcb80] | 24 | <title>desktop-file-utils-&desktop-file-utils-version;</title>
|
---|
[fc7afd0c] | 25 |
|
---|
[a149f6fe] | 26 | <indexterm zone="desktop-file-utils">
|
---|
[bfa83aee] | 27 | <primary sortas="a-desktop-file-utils">desktop-file-utils</primary>
|
---|
[a149f6fe] | 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
[bfa83aee] | 31 | <title>Introduction to Desktop File Utils</title>
|
---|
| 32 |
|
---|
| 33 | <para>
|
---|
| 34 | The <application>Desktop File Utils</application> package contains
|
---|
| 35 | command line utilities for working with <ulink
|
---|
[3438a47a] | 36 | url="http://standards.freedesktop.org/desktop-entry-spec/latest/">
|
---|
[bfa83aee] | 37 | Desktop entries</ulink>. These utilities are used by Desktop
|
---|
| 38 | Environments and other applications to manipulate the MIME-types
|
---|
| 39 | application databases and help adhere to the Desktop Entry
|
---|
| 40 | Specification.
|
---|
| 41 | </para>
|
---|
[fc7afd0c] | 42 |
|
---|
[d47ad20c] | 43 | &lfs83_checked;
|
---|
[c7b3f77] | 44 |
|
---|
[a149f6fe] | 45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 46 | <itemizedlist spacing="compact">
|
---|
| 47 | <listitem>
|
---|
[bfa83aee] | 48 | <para>
|
---|
| 49 | Download (HTTP): <ulink url="&desktop-file-utils-download-http;"/>
|
---|
| 50 | </para>
|
---|
[a149f6fe] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[bfa83aee] | 53 | <para>
|
---|
| 54 | Download (FTP): <ulink url="&desktop-file-utils-download-ftp;"/>
|
---|
| 55 | </para>
|
---|
[a149f6fe] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[bfa83aee] | 58 | <para>
|
---|
| 59 | Download MD5 sum: &desktop-file-utils-md5sum;
|
---|
| 60 | </para>
|
---|
[a149f6fe] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[bfa83aee] | 63 | <para>
|
---|
| 64 | Download size: &desktop-file-utils-size;
|
---|
| 65 | </para>
|
---|
[a149f6fe] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[bfa83aee] | 68 | <para>
|
---|
| 69 | Estimated disk space required: &desktop-file-utils-buildsize;
|
---|
| 70 | </para>
|
---|
[a149f6fe] | 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
[bfa83aee] | 73 | <para>
|
---|
| 74 | Estimated build time: &desktop-file-utils-time;
|
---|
| 75 | </para>
|
---|
[a149f6fe] | 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
[fc7afd0c] | 78 |
|
---|
[bfa83aee] | 79 | <bridgehead renderas="sect3">Desktop File Utils Dependencies</bridgehead>
|
---|
[832dcb80] | 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[bfa83aee] | 82 | <para role="required">
|
---|
| 83 | <xref linkend="glib2"/>
|
---|
| 84 | </para>
|
---|
[fc7afd0c] | 85 |
|
---|
[a149f6fe] | 86 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[bfa83aee] | 87 | <para role="optional">
|
---|
| 88 | <xref linkend="emacs"/>
|
---|
| 89 | </para>
|
---|
[fc7afd0c] | 90 |
|
---|
[1039de3] | 91 | <para condition="html" role="usernotes">User Notes:
|
---|
[bfa83aee] | 92 | <ulink url="&blfs-wiki;/desktop-file-utils"/>
|
---|
| 93 | </para>
|
---|
[a149f6fe] | 94 | </sect2>
|
---|
[fc7afd0c] | 95 |
|
---|
[a149f6fe] | 96 | <sect2 role="installation">
|
---|
[bfa83aee] | 97 | <title>Installation of Desktop File Utils</title>
|
---|
[a149f6fe] | 98 |
|
---|
[bfa83aee] | 99 | <para>
|
---|
| 100 | Install <application>Desktop File Utils</application> by
|
---|
| 101 | running the following commands:
|
---|
| 102 | </para>
|
---|
[a149f6fe] | 103 |
|
---|
| 104 | <screen><userinput>./configure --prefix=/usr &&
|
---|
| 105 | make</userinput></screen>
|
---|
[fc7afd0c] | 106 |
|
---|
[bfa83aee] | 107 | <para>
|
---|
| 108 | This package does not come with a test suite.
|
---|
| 109 | </para>
|
---|
[e639150] | 110 |
|
---|
[bfa83aee] | 111 | <para>
|
---|
| 112 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 113 | </para>
|
---|
[fc7afd0c] | 114 |
|
---|
[a149f6fe] | 115 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[fc7afd0c] | 116 |
|
---|
[a149f6fe] | 117 | </sect2>
|
---|
[fc7afd0c] | 118 |
|
---|
[a149f6fe] | 119 | <sect2 role="configuration">
|
---|
[bfa83aee] | 120 | <title>Configuring Desktop File Utils</title>
|
---|
[fc7afd0c] | 121 |
|
---|
[a149f6fe] | 122 | <sect3>
|
---|
| 123 | <title>Configuration Information</title>
|
---|
[fc7afd0c] | 124 |
|
---|
[bfa83aee] | 125 | <para>
|
---|
| 126 | The <ulink
|
---|
[3438a47a] | 127 | url="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html">XDG
|
---|
| 128 | Base Directory</ulink> specification defines the standard locations for
|
---|
| 129 | applications to place data and configuration files. These files can be
|
---|
| 130 | used, for instance, to define the menu structure and menu items in a
|
---|
| 131 | desktop environment.
|
---|
[bfa83aee] | 132 | </para>
|
---|
| 133 |
|
---|
| 134 | <para>
|
---|
| 135 | The default location for configuration files to be installed
|
---|
| 136 | is <filename class="directory">/etc/xdg</filename>, and the default
|
---|
| 137 | locations for data files are <filename
|
---|
| 138 | class="directory">/usr/local/share</filename> and <filename
|
---|
| 139 | class="directory">/usr/share</filename>. These locations can be
|
---|
| 140 | extended with the environment variables <envar>XDG_CONFIG_DIRS</envar>
|
---|
| 141 | and <envar>XDG_DATA_DIRS</envar>, respectively. The
|
---|
| 142 | <application>GNOME</application>, <application>KDE</application> and
|
---|
| 143 | <application>XFCE</application> environments respect these
|
---|
| 144 | settings.
|
---|
| 145 | </para>
|
---|
| 146 |
|
---|
| 147 | <para>
|
---|
| 148 | When a package installs a <filename>.desktop</filename> file
|
---|
| 149 | to a location in one of the base data directories, the database
|
---|
| 150 | that maps MIME-types to available applications can be updated. For
|
---|
| 151 | instance, the cache file at
|
---|
| 152 | <filename>/usr/share/applications/mimeinfo.cache</filename> can
|
---|
| 153 | be rebuilt by executing the following command as the <systemitem
|
---|
| 154 | class="username">root</systemitem> user:
|
---|
| 155 | </para>
|
---|
[99c190b] | 156 |
|
---|
[515cc58] | 157 | <screen role="root"><userinput>install -vdm755 /usr/share/applications &&
|
---|
| 158 | update-desktop-database /usr/share/applications</userinput></screen>
|
---|
[99c190b] | 159 |
|
---|
[a149f6fe] | 160 | </sect3>
|
---|
[fc7afd0c] | 161 |
|
---|
[a149f6fe] | 162 | </sect2>
|
---|
[fc7afd0c] | 163 |
|
---|
[a149f6fe] | 164 | <sect2 role="content">
|
---|
| 165 | <title>Contents</title>
|
---|
| 166 |
|
---|
| 167 | <segmentedlist>
|
---|
| 168 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 169 | <segtitle>Installed Libraries</segtitle>
|
---|
| 170 | <segtitle>Installed Directories</segtitle>
|
---|
[fc7afd0c] | 171 |
|
---|
[a149f6fe] | 172 | <seglistitem>
|
---|
[bfa83aee] | 173 | <seg>
|
---|
[0d7900a] | 174 | desktop-file-edit, desktop-file-install,
|
---|
[bfa83aee] | 175 | desktop-file-validate and
|
---|
| 176 | update-desktop-database
|
---|
[2a05c87] | 177 | </seg>
|
---|
[c3c56b2] | 178 | <seg>
|
---|
| 179 | None
|
---|
| 180 | </seg>
|
---|
| 181 | <seg>
|
---|
| 182 | None
|
---|
| 183 | </seg>
|
---|
[a149f6fe] | 184 | </seglistitem>
|
---|
| 185 | </segmentedlist>
|
---|
[fc7afd0c] | 186 |
|
---|
[a149f6fe] | 187 | <variablelist>
|
---|
| 188 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 189 | <?dbfo list-presentation="list"?>
|
---|
| 190 | <?dbhtml list-presentation="table"?>
|
---|
[fc7afd0c] | 191 |
|
---|
[2a05c87] | 192 | <varlistentry id="desktop-file-edit">
|
---|
| 193 | <term><command>desktop-file-edit</command></term>
|
---|
| 194 | <listitem>
|
---|
[bfa83aee] | 195 | <para>
|
---|
| 196 | is used to modify an existing desktop file entry.
|
---|
| 197 | </para>
|
---|
[2a05c87] | 198 | <indexterm zone="desktop-file-utils desktop-file-edit">
|
---|
| 199 | <primary sortas="b-desktop-file-edit">desktop-file-edit</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
[a149f6fe] | 204 | <varlistentry id="desktop-file-install">
|
---|
| 205 | <term><command>desktop-file-install</command></term>
|
---|
| 206 | <listitem>
|
---|
[bfa83aee] | 207 | <para>
|
---|
[0d7900a] | 208 | is used to install a new desktop file entry. It is
|
---|
| 209 | also used to rebuild or modify the MIME-types application
|
---|
[bfa83aee] | 210 | database.
|
---|
| 211 | </para>
|
---|
[a149f6fe] | 212 | <indexterm zone="desktop-file-utils desktop-file-install">
|
---|
| 213 | <primary sortas="b-desktop-file-install">desktop-file-install</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
[fc7afd0c] | 217 |
|
---|
[a149f6fe] | 218 | <varlistentry id="desktop-file-validate">
|
---|
| 219 | <term><command>desktop-file-validate</command></term>
|
---|
| 220 | <listitem>
|
---|
[bfa83aee] | 221 | <para>
|
---|
| 222 | is used to verify the integrity of a desktop file.
|
---|
| 223 | </para>
|
---|
[a149f6fe] | 224 | <indexterm zone="desktop-file-utils desktop-file-validate">
|
---|
| 225 | <primary sortas="b-desktop-file-validate">desktop-file-validate</primary>
|
---|
| 226 | </indexterm>
|
---|
| 227 | </listitem>
|
---|
| 228 | </varlistentry>
|
---|
[fc7afd0c] | 229 |
|
---|
[a149f6fe] | 230 | <varlistentry id="update-desktop-database">
|
---|
| 231 | <term><command>update-desktop-database</command></term>
|
---|
| 232 | <listitem>
|
---|
[bfa83aee] | 233 | <para>
|
---|
| 234 | is used to update the MIME-types application database.
|
---|
| 235 | </para>
|
---|
[a149f6fe] | 236 | <indexterm zone="desktop-file-utils update-desktop-database">
|
---|
| 237 | <primary sortas="b-update-desktop-database">update-desktop-database</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
| 241 | </variablelist>
|
---|
| 242 |
|
---|
| 243 | </sect2>
|
---|
[c87e4dd] | 244 |
|
---|
| 245 | </sect1>
|
---|