[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
|
---|
| 8 | "http://freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-&desktop-file-utils-version;.tar.xz">
|
---|
[c87e4dd] | 9 | <!ENTITY desktop-file-utils-download-ftp " ">
|
---|
[6c244267] | 10 | <!ENTITY desktop-file-utils-md5sum "c6b9f9aac1ea143091178c23437e6cd0">
|
---|
[bfa83aee] | 11 | <!ENTITY desktop-file-utils-size "128 KB">
|
---|
[6c244267] | 12 | <!ENTITY desktop-file-utils-buildsize "2.3 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 |
|
---|
[f3a1cd14] | 43 | &lfs77_checked; &gcc5_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 |
|
---|
| 157 | <screen role="root"><userinput>update-desktop-database /usr/share/applications</userinput></screen>
|
---|
| 158 |
|
---|
[a149f6fe] | 159 | </sect3>
|
---|
[fc7afd0c] | 160 |
|
---|
[a149f6fe] | 161 | </sect2>
|
---|
[fc7afd0c] | 162 |
|
---|
[a149f6fe] | 163 | <sect2 role="content">
|
---|
| 164 | <title>Contents</title>
|
---|
| 165 |
|
---|
| 166 | <segmentedlist>
|
---|
| 167 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 168 | <segtitle>Installed Libraries</segtitle>
|
---|
| 169 | <segtitle>Installed Directories</segtitle>
|
---|
[fc7afd0c] | 170 |
|
---|
[a149f6fe] | 171 | <seglistitem>
|
---|
[bfa83aee] | 172 | <seg>
|
---|
[0d7900a] | 173 | desktop-file-edit, desktop-file-install,
|
---|
[bfa83aee] | 174 | desktop-file-validate and
|
---|
| 175 | update-desktop-database
|
---|
[2a05c87] | 176 | </seg>
|
---|
[c3c56b2] | 177 | <seg>
|
---|
| 178 | None
|
---|
| 179 | </seg>
|
---|
| 180 | <seg>
|
---|
| 181 | None
|
---|
| 182 | </seg>
|
---|
[a149f6fe] | 183 | </seglistitem>
|
---|
| 184 | </segmentedlist>
|
---|
[fc7afd0c] | 185 |
|
---|
[a149f6fe] | 186 | <variablelist>
|
---|
| 187 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 188 | <?dbfo list-presentation="list"?>
|
---|
| 189 | <?dbhtml list-presentation="table"?>
|
---|
[fc7afd0c] | 190 |
|
---|
[2a05c87] | 191 | <varlistentry id="desktop-file-edit">
|
---|
| 192 | <term><command>desktop-file-edit</command></term>
|
---|
| 193 | <listitem>
|
---|
[bfa83aee] | 194 | <para>
|
---|
| 195 | is used to modify an existing desktop file entry.
|
---|
| 196 | </para>
|
---|
[2a05c87] | 197 | <indexterm zone="desktop-file-utils desktop-file-edit">
|
---|
| 198 | <primary sortas="b-desktop-file-edit">desktop-file-edit</primary>
|
---|
| 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
| 202 |
|
---|
[a149f6fe] | 203 | <varlistentry id="desktop-file-install">
|
---|
| 204 | <term><command>desktop-file-install</command></term>
|
---|
| 205 | <listitem>
|
---|
[bfa83aee] | 206 | <para>
|
---|
[0d7900a] | 207 | is used to install a new desktop file entry. It is
|
---|
| 208 | also used to rebuild or modify the MIME-types application
|
---|
[bfa83aee] | 209 | database.
|
---|
| 210 | </para>
|
---|
[a149f6fe] | 211 | <indexterm zone="desktop-file-utils desktop-file-install">
|
---|
| 212 | <primary sortas="b-desktop-file-install">desktop-file-install</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
[fc7afd0c] | 216 |
|
---|
[a149f6fe] | 217 | <varlistentry id="desktop-file-validate">
|
---|
| 218 | <term><command>desktop-file-validate</command></term>
|
---|
| 219 | <listitem>
|
---|
[bfa83aee] | 220 | <para>
|
---|
| 221 | is used to verify the integrity of a desktop file.
|
---|
| 222 | </para>
|
---|
[a149f6fe] | 223 | <indexterm zone="desktop-file-utils desktop-file-validate">
|
---|
| 224 | <primary sortas="b-desktop-file-validate">desktop-file-validate</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
[fc7afd0c] | 228 |
|
---|
[a149f6fe] | 229 | <varlistentry id="update-desktop-database">
|
---|
| 230 | <term><command>update-desktop-database</command></term>
|
---|
| 231 | <listitem>
|
---|
[bfa83aee] | 232 | <para>
|
---|
| 233 | is used to update the MIME-types application database.
|
---|
| 234 | </para>
|
---|
[a149f6fe] | 235 | <indexterm zone="desktop-file-utils update-desktop-database">
|
---|
| 236 | <primary sortas="b-update-desktop-database">update-desktop-database</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
| 240 | </variablelist>
|
---|
| 241 |
|
---|
| 242 | </sect2>
|
---|
[c87e4dd] | 243 |
|
---|
| 244 | </sect1>
|
---|