Failed to generate desktop file for qt snap

Hi. I have been trying to add auto-start functionality to my qt app. So that it starts automatically every time the PC starts. But every-time I am facing desktop file error. And I been also thinking of running the app on Ubuntu core in near future. So any suggestions/congfigs that suits both Ubuntu 20.04 Desktop and Ubuntu Core would be very helpful

Here is my snapcraft.yaml file:

Here is the error, I am getting

Failed to generate desktop file: Invalid desktop file 'cluemaster-mediadisplay.desktop': does not exists

Thanks in advance.

The error is telling you that the path you supplied for desktop: is not pointing to a real file. You need to find out where your build is installing the cluemaster-mediadisplay.desktop file or whether it is even named that and adjust the yaml accordingly.