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