Why pinned apps break on KDE Plasma and GNOME, and the two steps that diagnose it

How to fix broken app launchers and pinned apps on Linux