Should this be:
#!/bin/bash
/usr/bin/virt-manager --connect qemu:///system --show-domain-console Xubuntu $1
Avoid referencing home as ~ in a desktop entry. Use the Full Path, instead
(replace "$USER" or "username" with your actual system username):
/home/$USER/scripts/kubuntu-vm.sh