Alex,
Sorry I didn't get back to you sooner. I was attending a conference the
last 3 days.
There is a manpage for gtk-update-icon-cache which explains what it does
and what to expect. Here is a snippet from that manpage:
-----
gtk-update-icon-cache creates mmapable cache files for icon themes.
It expects to be given the PATH to a icon theme directory
containing an index.theme, e.g.
/usr/share/icons/hicolor, and writes a icon-theme.cache
containing cached information about the icons in
the directory tree below the given directory.
GTK+ can use the cache files created by gtk-update-icon-cache to
avoid a lot of system call and disk
seek overhead when the application starts. Since the format of
the cache files allows them to be mmaped
shared between multiple applications, the overall memory
consumption is reduced as well.
-----
I checked the LibreOffice 5.3 package file in /var/log/packages, which
shows LibreOffice was installed into /opt, but the icons are installed
into /usr/share/icons/gnome and /usr/share/icons/hicolor and
/usr/share/icons/locolor . The script I gave you caches all three.
I think the problem you are experiencing may be caused by the old cache
not reflecting the updated icons after you installed the LibreOffice
update, thus xfce or kde fail to load the icon(s) and they will display
the default icon. Running the script I suggested will re-sync the icon
cache to your new icons.
No, I don't think you need to reboot after using the script. That is a
windows-ism.
BTW: To keep the record straight, the icon-theme.cache file is not a
script as you called it. So, you cannot execute it. In fact, it is not
human-readable.
HTH.
Girvin
On 10/11/19 6:07 AM, mcmurchy1917techy wrote:
Hi Girvin
Thanks for the reply. I too use Slackware.
I've only got the /usr/share/icons/hicolor/icon-theme.cache script on
my system. Do I need to reboot the machine for the change to take effect?
Alex
On 10/10/2019 19:20, Girvin Herr wrote:
Alex,
I am assuming you are using a Linux distro, since you mention kde and
xfce. I am using Slackware Linux and xfce. I would first try running
the following script as root to refresh the icon cache before you get
too deep:
#!/bin/sh
# Cache the icons:
if [ -x /usr/bin/gtk-update-icon-cache ]; then
for THEME in gnome locolor hicolor ; do
if [ -e /usr/share/icons/${THEME}/icon-theme.cache ]; then
/usr/bin/gtk-update-icon-cache /usr/share/icons/${THEME}
>/dev/null 2>&1
fi
done
fi
#
# Update the desktop database:
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q /usr/share/applications
fi
#
# Update the mime database:
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database /usr/share/mime >/dev/null 2>&1
fi
It won't hurt to refresh the desktop and mime databases also, as
shown in the script. Historically when I suggested this to other
users with icon problems, running this script cured their problems. I
run this as part of my installation script when the LibreOffice
package is installed, thus updating the databases at install time.
FYI, the icons are defined in the .desktop files for each of the
LibreOffice apps in:
/opt/libreoffice5.3/share/xdg/*.desktop
Look for the "Icon=" entry in the desktop file. Additionally, you may
have defined additional desktop files in ~/Desktop . This directory
is where the desktop shortcuts may have been copied/placed by you to
your desktop.
And the icon files are in:
/usr/share/icons
Note that libreoffice5.3 is the version I happen to be using.
Substitute your version as needed. Note also that these are for my
Slackware system. Your distro may place them elsewhere, but it should
be similar.
HTH.
Girvin
On 10/10/19 2:49 AM, mcmurchy1917techy wrote:
I've got a problem that's bugging me.
The initial problem was that if I started calc, it started as
expected except that in the task manager bar, which displays the
running applications, I see an icon with a X and a circle through
it, I suspect this icon is the default icon for running
applications, the icon I'm expecting in the task manager bar is the
calc icon. The Base and Impress icons displayed as expected.
The icon for writer displayed perfectly.
It bugged me so much yesterday that I decided to temporarily change
from kde4 to xcfe. I started up Calc and got what I suspect was the
default icon not the calc icon. Started writer got the default icon
not the writer icon.
Returned to kde4.
This time. Started up Calc andgot the icon with a X and a circle
through it not the calc icon - same as before. Started up Writer
andgot the icon with a X and a circle through it not the writer
icon, whereas previously I would have got the writer icon. The same
was seen with the Base and Impress icons which were displayed as the
X and a circle through it.
By switching from kde4 to xfce and then back again, I've made
matters worse.
My question is where does the desk top environments get these icons
from? How can I get the calc and writer icons displaying in the task
manager bar
Alex
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.