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

Hrm, I did install --beta, but I looked in the store at the snap.yaml, which was pointing to edge. I can confirm that the beta snap has:

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

and that it did not auto-connect.

Out of curiosity, I updated photoscape’s snap declaration to have:

  "content": {
    "allow-auto-connection": [
      {
        "slot-attributes": {
          "content": "wine-runtime"
        },
        "plug-attributes": {
          "content": "$SLOT(content)"
        },
        "slots-per-plug": "*"
      },
      {
        "slot-attributes": {
          "content": "gtk-3-themes"
        },
        "plug-attributes": {
          "content": "$SLOT(content)"
        },
        "slots-per-plug": "*"
      },
      {
        "slot-attributes": {
          "content": "icon-themes"
        },
        "plug-attributes": {
          "content": "$SLOT(content)"
        },
        "slots-per-plug": "*"
      },
      {
        "slot-attributes": {
          "content": "sound-themes"
        },
        "plug-attributes": {
          "content": "$SLOT(content)"
        },
        "slots-per-plug": "*"
      },
      {
        "slot-attributes": {
          "content": "gtk-2-themes"
        },
        "plug-attributes": {
          "content": "$SLOT(content)"
        },
        "slots-per-plug": "*"
      },
      {
        "slot-attributes": {
          "content": "gnome-3-28-1804"
        },
        "plug-attributes": {
          "content": "$SLOT(content)"
        },
        "slots-per-plug": "*"
      }
    ]
  }

and found that it did auto-connect, but based on Plug/slot declaration rules: greedy plugs it seemed like it should not have made a difference since there weren’t multiple “candidate pairs” AFAICS (I’ve since removed that temporary snap declaration).

@pedronis, can you comment? photoscape --beta has this in snap.yaml:

plugs:
  gnome-3-28-1804:
    interface: content
    target: $SNAP/gnome-platform
    default-provider: gnome-3-28-1804
  gtk-3-themes:
    interface: content
    target: $SNAP/data-dir/themes
    default-provider: gtk-common-themes
  icon-themes:
    interface: content
    target: $SNAP/data-dir/icons
    default-provider: gtk-common-themes
  sound-themes:
    interface: content
    target: $SNAP/data-dir/sounds
    default-provider: gtk-common-themes
  wine-5-stable:
    interface: content
    target: $SNAP/wine-platform
    default-provider: wine-platform-5-stable
  wine-runtime:
    interface: content
    target: $SNAP/wine-runtime
    default-provider: wine-platform-runtime

gtk-themes-common has this snap declaration in slots:

  "content": {
    "allow-auto-connection": [
      {
        "slot-attributes": {
          "content": "gtk-3-themes"
        },
        "plug-attributes": {
          "content": "$SLOT(content)"
        }
      },
      {
        "slot-attributes": {
          "content": "icon-themes"
        },
        "plug-attributes": {
          "content": "$SLOT(content)"
        }
      },
      {
        "slot-attributes": {
          "content": "sound-themes"
        },
        "plug-attributes": {
          "content": "$SLOT(content)"
        }
      },
      {
        "slot-attributes": {
          "content": "gtk-2-themes"
        },
        "plug-attributes": {
          "content": "$SLOT(content)"
        }
      }
    ]
  }

gnome-3-28-1804 has this in its snap declaration for slots:

  "content": {
    "allow-auto-connection": [
      {
        "slot-attributes": {
          "content": "gnome-3-28-1804"
        },
        "plug-attributes": {
          "content": "$SLOT(content)"
        }
      }
    ]
  }

wine-platform-runtime has this in its snap declaration for plugs (I initially said slots):

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