Make gtk-update-... and update-desktop-... "nodump": The needed programs are

not mentioned in the dependency paragraphs, so that very often, they are not
installed. Furthermore, our policy respective to this is not clear to me:
a lot more packages install icons or .desktop files, and we do not run
updates for them. Actually, the updates should be run at the end of all
installations, not for individual pacakges...

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22159 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Pierre Labastie 2019-09-17 19:37:50 +00:00
parent baaf6020b9
commit 00d040d741
5 changed files with 7 additions and 29 deletions

View File

@ -124,25 +124,8 @@ chown -v -R root:root /usr/share/emacs/&emacs-version;</userinput></screen>
chown -v -R root:root /usr/share/emacs/&emacs-version; &amp;&amp;
rm -vf /usr/lib/systemd/user/emacs.service</userinput></screen>
<para>
This package installs icon files into the <filename
class="directory">/usr/share/icons/hicolor</filename> hierarchy and
desktop files into the <filename
class="directory">/usr/share/applications</filename> hierarchy. You
can improve system performance and memory usage by updating
<filename>/usr/share/icons/hicolor/icon-theme.cache</filename> and
<filename>/usr/share/applications/mimeinfo.cache</filename>. To
perform the update you must have <xref linkend="gtk2"/> or <xref
linkend="gtk3"/> installed (for the icon cache) and <xref
linkend="desktop-file-utils"/> (for the desktop cache) and issue
the following commands as the <systemitem
class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>gtk-update-icon-cache -t -f --include-image-data /usr/share/icons/hicolor &amp;&amp;
update-desktop-database</userinput></screen>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/gtk-update-icon-cache.xml"/>
</sect2>

View File

@ -109,7 +109,7 @@
command as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>gtk-update-icon-cache -qf /usr/share/icons/nuoveXT2</userinput></screen>
<screen role="nodump"><userinput>gtk-update-icon-cache -qf /usr/share/icons/nuoveXT2</userinput></screen>
</sect2>

View File

@ -16,5 +16,5 @@
<systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>gtk-update-icon-cache -qtf /usr/share/icons/hicolor</userinput></screen>
<screen role="nodump"><userinput>gtk-update-icon-cache -qtf /usr/share/icons/hicolor</userinput></screen>
</note>

View File

@ -21,6 +21,6 @@
<systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>gtk-update-icon-cache -qtf /usr/share/icons/hicolor &amp;&amp;
<screen role="nodump"><userinput>gtk-update-icon-cache -qtf /usr/share/icons/hicolor &amp;&amp;
update-desktop-database -q</userinput></screen>
</note>

View File

@ -139,14 +139,9 @@ make</userinput></screen>
<screen role="root"><userinput>make DOCDIR=/usr/share/doc/xarchiver-&xarchiver-version; install</userinput></screen>
<para>
If <xref linkend="desktop-file-utils"/> and <xref
linkend="hicolor-icon-theme"/> are installed, issue, as <systemitem
class="username">root</systemitem> user:
</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/update-icons-and-desktop.xml"/>
<screen role="root"><userinput>update-desktop-database &amp;&amp;
gtk-update-icon-cache -t -f --include-image-data /usr/share/icons/hicolor</userinput></screen>
</sect2>
<sect2 role="commands">