[c87e4dd] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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 " ">
|
---|
[93d2c72] | 9 | <!ENTITY desktop-file-utils-md5sum "8b930e9ad08ac6b8205dd00a1d694b0c">
|
---|
[f0ba6ba3] | 10 | <!ENTITY desktop-file-utils-size "341 KB">
|
---|
| 11 | <!ENTITY desktop-file-utils-buildsize "2.7 MB">
|
---|
[962d208] | 12 | <!ENTITY desktop-file-utils-time "less than 0.1 SBU">
|
---|
[c87e4dd] | 13 | ]>
|
---|
| 14 |
|
---|
[a70a184] | 15 | <sect1 id="desktop-file-utils"
|
---|
| 16 | xreflabel="desktop-file-utils-&desktop-file-utils-version;">
|
---|
[c87e4dd] | 17 | <sect1info>
|
---|
| 18 | <othername>$LastChangedBy$</othername>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
| 21 | <?dbhtml filename="desktop-file-utils.html"?>
|
---|
| 22 | <title>desktop-file-utils-&desktop-file-utils-version;</title>
|
---|
[a70a184] | 23 | <indexterm zone="desktop-file-utils">
|
---|
| 24 | <primary sortas="a-Desktop-file-utils">Desktop-file-utils</primary>
|
---|
| 25 | </indexterm>
|
---|
[c87e4dd] | 26 |
|
---|
| 27 | <sect2>
|
---|
| 28 | <title>Introduction to <application>desktop-file-utils</application></title>
|
---|
| 29 |
|
---|
| 30 | <para>The <application>desktop-file-utils</application> package contains
|
---|
| 31 | command line utilities for working with <ulink
|
---|
[f4f1156a] | 32 | url="http://www.freedesktop.org/Standards/desktop-entry-spec">desktop
|
---|
[1986ade] | 33 | entries</ulink>. These utilities are used by
|
---|
[c87e4dd] | 34 | <application><acronym>GNOME</acronym></application>-2 and other applications
|
---|
[f4f1156a] | 35 | to manipulate the <acronym>MIME</acronym>-types application databases and help
|
---|
[1986ade] | 36 | adhere to the desktop entries standards specification.</para>
|
---|
[c87e4dd] | 37 |
|
---|
| 38 | <sect3><title>Package information</title>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem><para>Download (HTTP):
|
---|
| 41 | <ulink url="&desktop-file-utils-download-http;"/></para></listitem>
|
---|
| 42 | <listitem><para>Download (FTP):
|
---|
| 43 | <ulink url="&desktop-file-utils-download-ftp;"/></para></listitem>
|
---|
[1986ade] | 44 | <listitem><para>Download MD5 sum: &desktop-file-utils-md5sum;</para></listitem>
|
---|
[c87e4dd] | 45 | <listitem><para>Download size: &desktop-file-utils-size;</para></listitem>
|
---|
| 46 | <listitem><para>Estimated disk space required:
|
---|
| 47 | &desktop-file-utils-buildsize;</para></listitem>
|
---|
| 48 | <listitem><para>Estimated build time:
|
---|
| 49 | &desktop-file-utils-time;</para></listitem></itemizedlist>
|
---|
| 50 | </sect3>
|
---|
| 51 |
|
---|
| 52 | <sect3><title><application>desktop-file-utils</application> dependencies</title>
|
---|
| 53 | <sect4><title>Required</title>
|
---|
[7c461b3] | 54 | <para><xref linkend="glib2"/> and <xref linkend="popt"/></para>
|
---|
[c87e4dd] | 55 | </sect4>
|
---|
| 56 |
|
---|
| 57 | <sect4><title>Optional</title>
|
---|
[a7a755a] | 58 | <para><xref linkend="emacs"/></para>
|
---|
[c87e4dd] | 59 | </sect4>
|
---|
| 60 | </sect3>
|
---|
| 61 |
|
---|
| 62 | </sect2>
|
---|
| 63 |
|
---|
| 64 | <sect2>
|
---|
| 65 | <title>Installation of <application>desktop-file-utils</application></title>
|
---|
| 66 |
|
---|
| 67 | <para>Install <application>desktop-file-utils</application> by running the
|
---|
| 68 | following commands:</para>
|
---|
| 69 |
|
---|
[f0ba6ba3] | 70 | <screen><userinput><command>./configure --prefix=/usr &&
|
---|
[a70a184] | 71 | make</command></userinput></screen>
|
---|
| 72 |
|
---|
| 73 | <para>Now, as the root user:</para>
|
---|
| 74 |
|
---|
| 75 | <screen><userinput role='root'><command>make install</command></userinput></screen>
|
---|
[c87e4dd] | 76 |
|
---|
| 77 | </sect2>
|
---|
| 78 |
|
---|
[1986ade] | 79 | <sect2>
|
---|
| 80 | <title>Configuring <application>desktop-file-utils</application></title>
|
---|
| 81 |
|
---|
| 82 | <sect3><title>Configuration information</title>
|
---|
| 83 | <para>The default location for the <acronym>MIME</acronym>-types application
|
---|
| 84 | database is <filename>/usr/share/applications/mimeinfo.cache</filename>. If
|
---|
| 85 | you are going to install, or have already installed, a desktop environment
|
---|
| 86 | such as <application><acronym>GNOME</acronym></application> or
|
---|
| 87 | <acronym>KDE</acronym> in a prefix other than
|
---|
| 88 | <filename class='directory'>/usr</filename>, you'll need to update the
|
---|
| 89 | <envar>XDG_DATA_DIRS</envar> environment variable so that additional
|
---|
| 90 | <acronym>MIME</acronym>-types application databases are properly maintained.
|
---|
| 91 | Add the following to the system-wide or personal profile:</para>
|
---|
| 92 |
|
---|
| 93 | <para>For <application><acronym>GNOME</acronym></application>:</para>
|
---|
| 94 |
|
---|
| 95 | <screen><userinput>XDG_DATA_DIRS=$XDG_DATA_DIRS:$GNOME_PREFIX/share
|
---|
| 96 | export XDG_DATA_DIRS</userinput></screen>
|
---|
| 97 |
|
---|
| 98 | <para>For <application><acronym>KDE</acronym></application>:</para>
|
---|
| 99 |
|
---|
| 100 | <screen><userinput>XDG_DATA_DIRS=$XDG_DATA_DIRS:$KDE_PREFIX/share
|
---|
| 101 | export XDG_DATA_DIRS</userinput></screen>
|
---|
| 102 |
|
---|
| 103 | <para>If you're installing both
|
---|
| 104 | <application><acronym>GNOME</acronym></application> and
|
---|
| 105 | <application><acronym>KDE</acronym></application>:</para>
|
---|
| 106 |
|
---|
| 107 | <screen><userinput>XDG_DATA_DIRS=$XDG_DATA_DIRS:$GNOME_PREFIX/share:$KDE_PREFIX/share
|
---|
| 108 | export XDG_DATA_DIRS</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | </sect3>
|
---|
| 111 |
|
---|
| 112 | </sect2>
|
---|
| 113 |
|
---|
[c87e4dd] | 114 | <sect2>
|
---|
| 115 | <title>Contents</title>
|
---|
| 116 |
|
---|
[a70a184] | 117 | <segmentedlist>
|
---|
| 118 | <segtitle>Installed Programs</segtitle>
|
---|
| 119 | <segtitle>Installed Libraries</segtitle>
|
---|
| 120 | <segtitle>Installed Directories</segtitle>
|
---|
| 121 |
|
---|
| 122 | <seglistitem>
|
---|
| 123 | <seg>desktop-file-install, desktop-file-validate and
|
---|
| 124 | update-desktop-database</seg>
|
---|
| 125 | <seg>None</seg>
|
---|
| 126 | <seg>None</seg>
|
---|
| 127 | </seglistitem>
|
---|
| 128 | </segmentedlist>
|
---|
| 129 |
|
---|
| 130 | <variablelist>
|
---|
| 131 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 132 | <?dbfo list-presentation="list"?>
|
---|
| 133 |
|
---|
| 134 | <varlistentry id="desktop-file-install">
|
---|
| 135 | <term><command>desktop-file-install</command></term>
|
---|
| 136 | <listitem><para>is used to install a new, or modify an existing desktop file
|
---|
| 137 | entry. It is also used to rebuild or modify the <acronym>MIME</acronym>-types
|
---|
| 138 | application database.</para>
|
---|
| 139 | <indexterm zone="desktop-file-utils desktop-file-install">
|
---|
| 140 | <primary sortas="b-desktop-file-install">desktop-file-install</primary>
|
---|
| 141 | </indexterm></listitem>
|
---|
| 142 | </varlistentry>
|
---|
| 143 |
|
---|
| 144 | <varlistentry id="desktop-file-validate">
|
---|
| 145 | <term><command>desktop-file-validate</command></term>
|
---|
| 146 | <listitem><para>is used to verify the integrity of a desktop file.</para>
|
---|
| 147 | <indexterm zone="desktop-file-utils desktop-file-validate">
|
---|
| 148 | <primary sortas="b-desktop-file-validate">desktop-file-validate</primary>
|
---|
| 149 | </indexterm></listitem>
|
---|
| 150 | </varlistentry>
|
---|
| 151 |
|
---|
| 152 | <varlistentry id="update-desktop-database">
|
---|
| 153 | <term><command>update-desktop-database</command></term>
|
---|
| 154 | <listitem><para>is used to update the <acronym>MIME</acronym>-types
|
---|
| 155 | application database.</para>
|
---|
| 156 | <indexterm zone="desktop-file-utils update-desktop-database">
|
---|
| 157 | <primary sortas="b-update-desktop-database">update-desktop-database</primary>
|
---|
| 158 | </indexterm></listitem>
|
---|
| 159 | </varlistentry>
|
---|
| 160 | </variablelist>
|
---|
[c87e4dd] | 161 |
|
---|
| 162 | </sect2>
|
---|
| 163 |
|
---|
| 164 | </sect1>
|
---|
| 165 |
|
---|