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: https://build.snapcraft.io/user/fcole90/fah-snap/927945
Snap sources: https://github.com/fcole90/fah-snap/pull/7

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
   folding-at-home-fcole90:
     command: usr/bin/FAHClient -v --chdir $SNAP_USER_COMMON
-    autostart: "$SNAP/meta/gui/folding-at-home-fcole90.desktop"
+    autostart: folding-at-home-fcole90.desktop
     environment:
     
       LD_LIBRARY_PATH: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/:/var/lib/snapd/hostfs/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/"
2 Likes