Changeset 99c190b for general


Ignore:
Timestamp:
01/30/2007 05:53:34 AM (17 years ago)
Author:
Dan Nichilson <dnicholson@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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, 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/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
c15c739
Parents:
b2287935
Message:

Fixed XDG basedir info on desktop-file-utils and gnome-menus.
Closes #2172.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/genutils/desktop-file-utils.xml

    rb2287935 r99c190b  
    3737    <application>GNOME</application>-2 and other applications
    3838    to manipulate the MIME-types application databases and help
    39     adhere to the desktop entries standards specification.</para>
     39    adhere to the Desktop Entry Specification.</para>
    4040
    4141    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    9797      <title>Configuration Information</title>
    9898
    99       <para>The default location for the MIME-types application database is
    100       <filename>/usr/share/applications/mimeinfo.cache</filename>. If you are
    101       going to install, or have already installed, a desktop environment such
    102       as <application>GNOME</application> or <application>KDE</application> in
    103       a prefix other than <filename class='directory'>/usr</filename>, you'll
    104       need to update the <envar>XDG_DATA_DIRS</envar> variable with your prefix
    105       setting. Update the <envar>XDG_DATA_DIRS</envar> (if necessary) and
     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
    106118      <envar>XDG_CONFIG_DIRS</envar> environment variables so that the
    107119      additional MIME-types application databases and desktop menu files are
     
    111123      <para>For <application>GNOME</application>:</para>
    112124
    113 <screen><literal>XDG_DATA_DIRS=/usr/share:$GNOME_PREFIX/share
    114 XDG_CONFIG_DIRS=/usr/share:&gnome-etc-dir;/xdg
     125<screen><literal>XDG_DATA_DIRS=$GNOME_PREFIX/share:/usr/local/share:/usr/share
     126XDG_CONFIG_DIRS=&gnome-etc-dir;/xdg:/etc/xdg
    115127export XDG_DATA_DIRS XDG_CONFIG_DIRS</literal></screen>
    116128
    117129      <para>For <application>KDE</application>:</para>
    118130
    119 <screen><literal>XDG_DATA_DIRS=/usr/share:$KDE_PREFIX/share
    120 XDG_CONFIG_DIRS=/usr/share:/etc/kde/xdg
     131<screen><literal>XDG_DATA_DIRS=$KDE_PREFIX/share:/usr/local/share:/usr/share
     132XDG_CONFIG_DIRS=/etc/kde/xdg:/etc/xdg
    121133export XDG_DATA_DIRS XDG_CONFIG_DIRS</literal></screen>
    122134
     135      <para>For <application>XFCE</application>, the default locations
     136      should be appropriate if the instructions in the BLFS book were
     137      followed.</para>
    123138
    124139<!-- This ends up messing up the menus and the GNOME and KDE stuff is simply
     
    132147
    133148-->
     149
     150      <para>When a package installs a <filename>.desktop</filename> file
     151      to a location in one the base data directories, a database
     152      mapping MIME-types to available applications can be updated. For
     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>
    134159
    135160    </sect3>
Note: See TracChangeset for help on using the changeset viewer.