Auto connections of wine-base-stable, wine-base-devel and wine-base-staging

The snap declaration for wine-platform-runtime has:

{
  "allow-auto-connection": [
    {
      "slot-attributes": {
        "content": "wine-runtime"
      },
      "plug-attributes": {
        "content": "$SLOT(content)"
      }
    }
  ]
}

but the snap.yaml for photoscape has:

plugs:
  wine-platform-runtime:
    interface: content
    target: $SNAP/wine-runtime
    default-provider: wine-platform-runtime

The content interface says: " content (slot and plug) : an arbitrary identifier for content type. Defaults to either local slot name or local plug name for slot/plug definitions respetively.". Since photoscape doesn’t have “content” listed in the plug, it is defaulting to the interface reference, ie “wine-platform-runtime”. Based on the snap declaration, “wine-platform-runtime” != “wine-runtime”, so it is not a candidate for auto-connection.

Photoscape needs to adjust the plugs to be either:

plugs:
  wine-platform-runtime:
    interface: content
    content: wine-runtime
    target: $SNAP/wine-runtime
    default-provider: wine-platform-runtime

or:

plugs:
  wine-runtime:
    interface: content
    target: $SNAP/wine-runtime
    default-provider: wine-platform-runtime

then it should work.

1 Like