I don't have Kubuntu (or any other KDE distro) but Im sure the easiest way would be to check the difference in the *.desktop files there and apply those to the above script (or one modified as sisco311 showed).