source: general/genutils/desktop-file-utils.xml@ 0034f4f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0034f4f was 807b609, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated the XDG environment variables in the desktop-file-utils instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5155 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.8 KB
RevLine 
[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
[8d77de6]15<sect1 id="desktop-file-utils"
[a70a184]16xreflabel="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
[a149f6fe]39 adhere to the desktop entries standards 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>
66 <para><xref linkend="glib2"/> and <xref linkend="popt"/></para>
[fc7afd0c]67
[a149f6fe]68 <bridgehead renderas="sect4">Optional</bridgehead>
69 <para><xref linkend="emacs"/></para>
[fc7afd0c]70
[a149f6fe]71 </sect2>
[fc7afd0c]72
[a149f6fe]73 <sect2 role="installation">
[832dcb80]74 <title>Installation of desktop-file-utils</title>
[a149f6fe]75
[8d77de6]76 <para>Install <application>desktop-file-utils</application> by running the
[a149f6fe]77 following commands:</para>
78
79<screen><userinput>./configure --prefix=/usr &amp;&amp;
80make</userinput></screen>
[fc7afd0c]81
[a149f6fe]82 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[fc7afd0c]83
[a149f6fe]84<screen role="root"><userinput>make install</userinput></screen>
[fc7afd0c]85
[a149f6fe]86 </sect2>
[fc7afd0c]87
[a149f6fe]88 <sect2 role="configuration">
[832dcb80]89 <title>Configuring desktop-file-utils</title>
[fc7afd0c]90
[a149f6fe]91 <sect3>
92 <title>Configuration Information</title>
[fc7afd0c]93
[807b609]94 <para>The default location for the MIME-types application database is
95 <filename>/usr/share/applications/mimeinfo.cache</filename>. If you are
96 going to install, or have already installed, a desktop environment such
97 as <application>GNOME</application> or <application>KDE</application> in
98 a prefix other than <filename class='directory'>/usr</filename>, you'll
99 need to update the <envar>XDG_DATA_DIRS</envar> and
100 <envar>XDG_CONFIG_DIRS</envar> environment variables so that the
101 additional MIME-types application databases and desktop menu files are
102 properly maintained and discovered. Add the following to the system-wide
103 or personal profile:</para>
[a149f6fe]104
105 <para>For <application>GNOME</application>:</para>
106
[807b609]107<screen><literal>XDG_DATA_DIRS=/usr/share:$GNOME_PREFIX/share
108XDG_CONFIG_DIRS=/usr/share:/etc/gnome/xdg
109export XDG_DATA_DIRS XDG_CONFIG_DIRS</literal></screen>
[a149f6fe]110
111 <para>For <application>KDE</application>:</para>
112
[807b609]113<screen><literal>XDG_DATA_DIRS=/usr/share:$KDE_PREFIX/share
114XDG_CONFIG_DIRS=/usr/share:/etc/kde/xdg
115export XDG_DATA_DIRS XDG_CONFIG_DIRS</literal></screen>
116
117
118<!-- This ends up messing up the menus and the GNOME and KDE stuff is simply
119 not yet interchangeable
[a149f6fe]120
[8d77de6]121 <para>If you're installing both <application>GNOME</application> and
[a149f6fe]122 <application>KDE</application>:</para>
123
124<screen><literal>XDG_DATA_DIRS=$XDG_DATA_DIRS:$GNOME_PREFIX/share:$KDE_PREFIX/share
125export XDG_DATA_DIRS</literal></screen>
[fc7afd0c]126
[807b609]127-->
128
[a149f6fe]129 </sect3>
[fc7afd0c]130
[a149f6fe]131 </sect2>
[fc7afd0c]132
[a149f6fe]133 <sect2 role="content">
134 <title>Contents</title>
135
136 <segmentedlist>
137 <segtitle>Installed Programs</segtitle>
138 <segtitle>Installed Libraries</segtitle>
139 <segtitle>Installed Directories</segtitle>
[fc7afd0c]140
[a149f6fe]141 <seglistitem>
[8d77de6]142 <seg>desktop-file-install, desktop-file-validate, and
[a149f6fe]143 update-desktop-database</seg>
144 <seg>None</seg>
145 <seg>None</seg>
146 </seglistitem>
147 </segmentedlist>
[fc7afd0c]148
[a149f6fe]149 <variablelist>
150 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
151 <?dbfo list-presentation="list"?>
152 <?dbhtml list-presentation="table"?>
[fc7afd0c]153
[a149f6fe]154 <varlistentry id="desktop-file-install">
155 <term><command>desktop-file-install</command></term>
156 <listitem>
[8d77de6]157 <para>is used to install a new, or modify an existing desktop file
158 entry. It is also used to rebuild or modify the MIME-types
[a149f6fe]159 application database.</para>
160 <indexterm zone="desktop-file-utils desktop-file-install">
161 <primary sortas="b-desktop-file-install">desktop-file-install</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
[fc7afd0c]165
[a149f6fe]166 <varlistentry id="desktop-file-validate">
167 <term><command>desktop-file-validate</command></term>
168 <listitem>
169 <para>is used to verify the integrity of a desktop file.</para>
170 <indexterm zone="desktop-file-utils desktop-file-validate">
171 <primary sortas="b-desktop-file-validate">desktop-file-validate</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
[fc7afd0c]175
[a149f6fe]176 <varlistentry id="update-desktop-database">
177 <term><command>update-desktop-database</command></term>
178 <listitem>
[8d77de6]179 <para>is used to update the MIME-types
[a149f6fe]180 application database.</para>
181 <indexterm zone="desktop-file-utils update-desktop-database">
182 <primary sortas="b-update-desktop-database">update-desktop-database</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186 </variablelist>
187
188 </sect2>
[c87e4dd]189
190</sect1>
Note: See TracBrowser for help on using the repository browser.