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 .
How to clear the icon cache in bash?
Re: How to clear the icon cache in bash?
"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 Apkframp 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 .
Re: How to clear the icon cache in bash?
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.
~/.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.