[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 |
|
---|
[77566073] | 7 | <!ENTITY desktop-file-utils-download-http "http://freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-&desktop-file-utils-version;.tar.gz">
|
---|
[c87e4dd] | 8 | <!ENTITY desktop-file-utils-download-ftp " ">
|
---|
[c7b3f77] | 9 | <!ENTITY desktop-file-utils-md5sum "2fe8ebe222fc33cd4a959415495b7eed">
|
---|
| 10 | <!ENTITY desktop-file-utils-size "341 KB">
|
---|
[c5669e8] | 11 | <!ENTITY desktop-file-utils-buildsize "3 MB">
|
---|
[962d208] | 12 | <!ENTITY desktop-file-utils-time "less than 0.1 SBU">
|
---|
[c87e4dd] | 13 | ]>
|
---|
| 14 |
|
---|
[8d77de6] | 15 | <sect1 id="desktop-file-utils"
|
---|
[a70a184] | 16 | 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">
|
---|
| 27 | <primary sortas="a-Desktop-file-utils">Desktop-file-utils</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
[832dcb80] | 31 | <title>Introduction to desktop-file-utils</title>
|
---|
[fc7afd0c] | 32 |
|
---|
[8d77de6] | 33 | <para>The <application>desktop-file-utils</application> package contains
|
---|
| 34 | command line utilities for working with <ulink
|
---|
| 35 | url="http://www.freedesktop.org/Standards/desktop-entry-spec">desktop
|
---|
| 36 | entries</ulink>. These utilities are used by
|
---|
| 37 | <application>GNOME</application>-2 and other applications
|
---|
| 38 | to manipulate the MIME-types application databases and help
|
---|
[99c190b] | 39 | adhere to the Desktop Entry Specification.</para>
|
---|
[fc7afd0c] | 40 |
|
---|
[c7b3f77] | 41 | &lfs65_checked;
|
---|
| 42 |
|
---|
[a149f6fe] | 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (HTTP): <ulink url="&desktop-file-utils-download-http;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download (FTP): <ulink url="&desktop-file-utils-download-ftp;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download MD5 sum: &desktop-file-utils-md5sum;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download size: &desktop-file-utils-size;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated disk space required: &desktop-file-utils-buildsize;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Estimated build time: &desktop-file-utils-time;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </itemizedlist>
|
---|
[fc7afd0c] | 64 |
|
---|
[832dcb80] | 65 | <bridgehead renderas="sect3">desktop-file-utils Dependencies</bridgehead>
|
---|
| 66 |
|
---|
| 67 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e639150] | 68 | <para role="required"><xref linkend="glib2"/></para>
|
---|
[fc7afd0c] | 69 |
|
---|
[a149f6fe] | 70 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[52d50d5] | 71 | <para role="optional"><xref linkend="emacs"/></para>
|
---|
[fc7afd0c] | 72 |
|
---|
[1039de3] | 73 | <para condition="html" role="usernotes">User Notes:
|
---|
| 74 | <ulink url="&blfs-wiki;/desktop-file-utils"/></para>
|
---|
| 75 |
|
---|
[a149f6fe] | 76 | </sect2>
|
---|
[fc7afd0c] | 77 |
|
---|
[a149f6fe] | 78 | <sect2 role="installation">
|
---|
[832dcb80] | 79 | <title>Installation of desktop-file-utils</title>
|
---|
[a149f6fe] | 80 |
|
---|
[8d77de6] | 81 | <para>Install <application>desktop-file-utils</application> by running the
|
---|
[a149f6fe] | 82 | following commands:</para>
|
---|
| 83 |
|
---|
| 84 | <screen><userinput>./configure --prefix=/usr &&
|
---|
| 85 | make</userinput></screen>
|
---|
[fc7afd0c] | 86 |
|
---|
[e639150] | 87 | <para>This package does not come with a test suite.</para>
|
---|
| 88 |
|
---|
[a149f6fe] | 89 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[fc7afd0c] | 90 |
|
---|
[a149f6fe] | 91 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[fc7afd0c] | 92 |
|
---|
[a149f6fe] | 93 | </sect2>
|
---|
[fc7afd0c] | 94 |
|
---|
[a149f6fe] | 95 | <sect2 role="configuration">
|
---|
[832dcb80] | 96 | <title>Configuring desktop-file-utils</title>
|
---|
[fc7afd0c] | 97 |
|
---|
[a149f6fe] | 98 | <sect3>
|
---|
| 99 | <title>Configuration Information</title>
|
---|
[fc7afd0c] | 100 |
|
---|
[99c190b] | 101 | <!-- Background for the XDG_* settings can be found in #2172 -->
|
---|
| 102 |
|
---|
| 103 | <para>The <ulink
|
---|
| 104 | url="http://freedesktop.org/wiki/Standards/basedir-spec">XDG Base
|
---|
| 105 | Directory</ulink> specification defines the standard locations for
|
---|
| 106 | applications to place data and configuration files. These files can
|
---|
| 107 | be used, for instance, to define the menu structure and menu items
|
---|
| 108 | in a desktop environment.</para>
|
---|
| 109 |
|
---|
| 110 | <para>The default location for configuration files to be installed
|
---|
| 111 | is <filename class="directory">/etc/xdg</filename>, and the default
|
---|
| 112 | locations for data files are <filename
|
---|
| 113 | class="directory">/usr/local/share</filename> and <filename
|
---|
| 114 | class="directory">/usr/share</filename>. These locations can be
|
---|
| 115 | extended with the environment variables <envar>XDG_CONFIG_DIRS</envar>
|
---|
| 116 | and <envar>XDG_DATA_DIRS</envar>, respectively. The
|
---|
| 117 | <application>GNOME</application>, <application>KDE</application> and
|
---|
[fd91fea] | 118 | <application>XFCE</application> environments respect these
|
---|
[99c190b] | 119 | settings. Update the <envar>XDG_DATA_DIRS</envar> (if necessary) and
|
---|
[807b609] | 120 | <envar>XDG_CONFIG_DIRS</envar> environment variables so that the
|
---|
| 121 | additional MIME-types application databases and desktop menu files are
|
---|
[da4d54c] | 122 | properly maintained and discovered by adding the following to the
|
---|
| 123 | system-wide or personal profile:</para>
|
---|
[a149f6fe] | 124 |
|
---|
| 125 | <para>For <application>GNOME</application>:</para>
|
---|
| 126 |
|
---|
[99c190b] | 127 | <screen><literal>XDG_DATA_DIRS=$GNOME_PREFIX/share:/usr/local/share:/usr/share
|
---|
| 128 | XDG_CONFIG_DIRS=&gnome-etc-dir;/xdg:/etc/xdg
|
---|
[807b609] | 129 | export XDG_DATA_DIRS XDG_CONFIG_DIRS</literal></screen>
|
---|
[a149f6fe] | 130 |
|
---|
| 131 | <para>For <application>KDE</application>:</para>
|
---|
| 132 |
|
---|
[99c190b] | 133 | <screen><literal>XDG_DATA_DIRS=$KDE_PREFIX/share:/usr/local/share:/usr/share
|
---|
| 134 | XDG_CONFIG_DIRS=/etc/kde/xdg:/etc/xdg
|
---|
[807b609] | 135 | export XDG_DATA_DIRS XDG_CONFIG_DIRS</literal></screen>
|
---|
| 136 |
|
---|
[99c190b] | 137 | <para>For <application>XFCE</application>, the default locations
|
---|
| 138 | should be appropriate if the instructions in the BLFS book were
|
---|
| 139 | followed.</para>
|
---|
[807b609] | 140 |
|
---|
| 141 | <!-- This ends up messing up the menus and the GNOME and KDE stuff is simply
|
---|
| 142 | not yet interchangeable
|
---|
[a149f6fe] | 143 |
|
---|
[8d77de6] | 144 | <para>If you're installing both <application>GNOME</application> and
|
---|
[a149f6fe] | 145 | <application>KDE</application>:</para>
|
---|
| 146 |
|
---|
| 147 | <screen><literal>XDG_DATA_DIRS=$XDG_DATA_DIRS:$GNOME_PREFIX/share:$KDE_PREFIX/share
|
---|
| 148 | export XDG_DATA_DIRS</literal></screen>
|
---|
[fc7afd0c] | 149 |
|
---|
[807b609] | 150 | -->
|
---|
| 151 |
|
---|
[99c190b] | 152 | <para>When a package installs a <filename>.desktop</filename> file
|
---|
[c5669e8] | 153 | to a location in one of the base data directories, the database
|
---|
| 154 | that maps MIME-types to available applications can be updated. For
|
---|
[99c190b] | 155 | instance, the cache file at
|
---|
| 156 | <filename>/usr/share/applications/mimeinfo.cache</filename> can
|
---|
| 157 | be rebuilt by executing the following command as the <systemitem
|
---|
| 158 | class="username">root</systemitem> user:</para>
|
---|
| 159 |
|
---|
| 160 | <screen role="root"><userinput>update-desktop-database /usr/share/applications</userinput></screen>
|
---|
| 161 |
|
---|
[a149f6fe] | 162 | </sect3>
|
---|
[fc7afd0c] | 163 |
|
---|
[a149f6fe] | 164 | </sect2>
|
---|
[fc7afd0c] | 165 |
|
---|
[a149f6fe] | 166 | <sect2 role="content">
|
---|
| 167 | <title>Contents</title>
|
---|
| 168 |
|
---|
| 169 | <segmentedlist>
|
---|
| 170 | <segtitle>Installed Programs</segtitle>
|
---|
| 171 | <segtitle>Installed Libraries</segtitle>
|
---|
| 172 | <segtitle>Installed Directories</segtitle>
|
---|
[fc7afd0c] | 173 |
|
---|
[a149f6fe] | 174 | <seglistitem>
|
---|
[8d77de6] | 175 | <seg>desktop-file-install, desktop-file-validate, and
|
---|
[a149f6fe] | 176 | update-desktop-database</seg>
|
---|
| 177 | <seg>None</seg>
|
---|
| 178 | <seg>None</seg>
|
---|
| 179 | </seglistitem>
|
---|
| 180 | </segmentedlist>
|
---|
[fc7afd0c] | 181 |
|
---|
[a149f6fe] | 182 | <variablelist>
|
---|
| 183 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 184 | <?dbfo list-presentation="list"?>
|
---|
| 185 | <?dbhtml list-presentation="table"?>
|
---|
[fc7afd0c] | 186 |
|
---|
[a149f6fe] | 187 | <varlistentry id="desktop-file-install">
|
---|
| 188 | <term><command>desktop-file-install</command></term>
|
---|
| 189 | <listitem>
|
---|
[8d77de6] | 190 | <para>is used to install a new, or modify an existing desktop file
|
---|
| 191 | entry. It is also used to rebuild or modify the MIME-types
|
---|
[a149f6fe] | 192 | application database.</para>
|
---|
| 193 | <indexterm zone="desktop-file-utils desktop-file-install">
|
---|
| 194 | <primary sortas="b-desktop-file-install">desktop-file-install</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
[fc7afd0c] | 198 |
|
---|
[a149f6fe] | 199 | <varlistentry id="desktop-file-validate">
|
---|
| 200 | <term><command>desktop-file-validate</command></term>
|
---|
| 201 | <listitem>
|
---|
| 202 | <para>is used to verify the integrity of a desktop file.</para>
|
---|
| 203 | <indexterm zone="desktop-file-utils desktop-file-validate">
|
---|
| 204 | <primary sortas="b-desktop-file-validate">desktop-file-validate</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
[fc7afd0c] | 208 |
|
---|
[a149f6fe] | 209 | <varlistentry id="update-desktop-database">
|
---|
| 210 | <term><command>update-desktop-database</command></term>
|
---|
| 211 | <listitem>
|
---|
[8d77de6] | 212 | <para>is used to update the MIME-types
|
---|
[a149f6fe] | 213 | application database.</para>
|
---|
| 214 | <indexterm zone="desktop-file-utils update-desktop-database">
|
---|
| 215 | <primary sortas="b-update-desktop-database">update-desktop-database</primary>
|
---|
| 216 | </indexterm>
|
---|
| 217 | </listitem>
|
---|
| 218 | </varlistentry>
|
---|
| 219 | </variablelist>
|
---|
| 220 |
|
---|
| 221 | </sect2>
|
---|
[c87e4dd] | 222 |
|
---|
| 223 | </sect1>
|
---|