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