Solved KDE icons disappeared after switching back from upgraded BE

So I upgraded packages on my FreeBSD 14.4. I made a pre-upgrade BE and a post-upgrade BE (and then some later BEs from pre-upgrade BE). I switched to post-upgrade BE then right back to pre-upgrade BE, and all my pinned KDE application shortcut icons on the taskbar are blank and not working.
 
Worse, I cannot pin any applications to the KDE taskbar now. It just pins empty icons that show app's name like "soffice.desktop" but then if I click on them it says "Unknown application folder."
 
Nobody panic. Solution:

Run as your user in terminal (not root):
kbuildsycoca5 --noincremental
kbuildsycoca6 --noincremental

It rebuilds the cache and everything works again (without even having to log out of KDE).
 
Back
Top