[Slackbuilds-users] doinst.sh template
Robby Workman
rworkman at slackbuilds.org
Mon Jan 9 04:52:09 UTC 2017
On Mon, 09 Jan 2017 05:38:08 +0300
Alexander Verbovetsky <alik at ejik.org> wrote:
> I noticed that sometimes after installation of a SlackBuild with
>
> if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
> if [ -x /usr/bin/gtk-update-icon-cache ]; then
> /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null
> 2>&1
> fi
> fi
>
> in doinst.sh the cache is not updated and therefore icons do not
> appear on the desktop. But they do appear after additional reboot.
> I guess that the reason is that in /etc/rc.d/rc.M the command
> gtk-update-icon-cache has the option "-f":
>
> --force, -f
> Overwrite an existing cache file even if it appears to be uptodate.
>
> Wouldn't it be a good idea to add -f to doinst.sh:
>
> /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null
> 2>&1
Agreed:
commit 49cc824b72fbdc8c69b938e7c414b4f7a2341c81
Author: Robby Workman <rworkman at slackware.com>
Date: Sun Jan 8 22:49:20 2017 -0600
doinst.sh: Add "-f" to icon theme update and note other themes
Thanks to Alexander Verbovetsky <alik at ejik.org> for the suggestion
about "gtk-update-icon-cache -f" to be consistent with what's done
in rc.M on boot:
https://lists.slackbuilds.org/pipermail/slackbuilds-users/2017-January/017875.html
Thanks!
-RW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20170108/f1a96572/attachment.asc>
More information about the SlackBuilds-users
mailing list