How to clear the icon cache in bash?

The standard panel of LXDE - http://wiki.lxde.org/en/LXPanel
Post Reply
framp
Posts: 1
Joined: Sun Sep 17, 2023 10:36 am
Contact:

How to clear the icon cache in bash?

Post by framp »

I want to refresh an icon used in a desktop file in my raspiBackup installer written in bash. The OS is RaspbianOS which uses LXDE.
Unfortunately the icon displayed on the desktop doesn't change when the icon is updated. If I restart the OS the updated icon is displayed. I searched in the net how I can refresh the icon cache on LXDE but unfortunately didn't find any hint. Would be great if I get a pointer or even the command I can use to clear the icon cache :D .
Clarar
Posts: 3
Joined: Tue Sep 19, 2023 5:24 am

Re: How to clear the icon cache in bash?

Post by Clarar »

framp wrote: Sun Sep 17, 2023 10:54 am I want to refresh an icon used in a desktop file in my raspiBackup installer written in bash. The OS is RaspbianOS which uses LXDE.
Unfortunately the icon displayed on the desktop doesn't change when the icon is updated. If I restart the OS the updated icon is displayed. I searched in the net how I can refresh the icon cache on LXDE but unfortunately didn't find any hint. Would be great if I get a pointer or even the command I can use to clear the icon cache :D .
"In RaspbianOS, updating icons on LXDE can be challenging. You might want to think about using lxpanelctl restart or manually editing the icon file and restarting LXDE to erase the icon cache.GB whatsapp Apk
andreen
Posts: 8
Joined: Thu Aug 03, 2023 6:43 am

Re: How to clear the icon cache in bash?

Post by andreen »

If restarting pcmanfm doesn't immediately reflect the change, you can try clearing the icon cache manually. First, check if there's an icon cache directory that needs to be cleared, typically found in:

~/.cache/icons/
You can remove or clear the cache like this:
cookie clicker
rm -rf ~/.cache/icons/*
After clearing the cache, restart pcmanfm with the above commands to reload the icons.
Post Reply