The autostart property does not match the required schema

Did anything change in snapcraft.yml format for .desktop file definitions? Recently the builds for existing fah-snap had started to fail with the error, and it is not clear what a proper solution is.

Issues while validating snapcraft.yaml: The ‘apps/folding-at-home-fcole90/autostart’ property does not match the required schema: ‘$SNAP/meta/gui/folding-at-home-fcole90.desktop’ is not a valid desktop file name (e.g. myapp.desktop)

Failed build:
Snap sources:

I commented in the referenced PR and opened another PR to fix it. :slight_smile:

1 Like

For those coming, here is the fix. )

       - browser-support
     command: usr/bin/FAHClient -v --chdir $SNAP_USER_COMMON
-    autostart: "$SNAP/meta/gui/folding-at-home-fcole90.desktop"
+    autostart: folding-at-home-fcole90.desktop
       LD_LIBRARY_PATH: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/:/var/lib/snapd/hostfs/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/"