So close!

if you want to use it as a system process you just add a daemon: entry to your apps: section …

for the desktop you need to ship an autostart .desktop file and add it to your snapcraft.yaml like: