So it seems that the org.kde.kate.desktop file was wrong, the [Desktop Entry] block was generated at the end of the file instead at the top.
So it seems that the org.kde. kate.desktop file was wrong, the [Desktop Entry] block was generated at the end of the file instead at the top.