I use Kubuntu 19.04 and I got it to work with following .desktop file

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
StartupWMClass=package
Terminal=false...