Auto-connect and greedy plug behaviour for for icon-theme-breeze and gtk-theme-breeze snaps

As per suggested in KDE: global auto-connect qt-common-themes - #20 by jamesh I need:

  • allow any snap to auto-connect to the gtk-theme-breeze snap gtk-2-themes and gtk-3-themes slots.
  • allow any snap to auto-connect to the icon-theme-breeze snap icons-themes slot.
  • update the declaration for gtk-theme-breeze snap to allow greedy connection to its gtk-2-themes and gtk-3-themes slots.
  • update the declaration for icon-theme-breeze snap to allow greedy connection to its icon-themes slot.

This is also needed for automatic theme installation in Kubuntu. Thanks for your consideration.

2 Likes

Getting these snap declarations updated would also be useful in letting us publish the new version of gtk-common-themes:

The candidate release we’ve got in testing drops the Breeze theme, so allowing the replacement snaps to auto-connect and coexist is important to letting us promote the release to stable.

1 Like

@review-team: has anyone had a chance to look at this? Getting this sorted would help in getting the new gtk-common-themes snap release promoted to stable (since it drops the Breeze themes).

The desired snap declaration would be similar to what was granted for the MATE theme snaps. Namely:

  1. for gtk-theme-breeze:
    slots:
      content:
        allow-auto-connection:
          -
            plug-attributes:
              content: $SLOT(content)
            slot-attributes:
              content: gtk-3-themes
            slots-per-plug: *
          -
            plug-attributes:
              content: $SLOT(content)
            slot-attributes:
              content: gtk-2-themes
            slots-per-plug: *
    
  2. for icon-theme-breeze:
    slots:
      content:
        allow-auto-connection:
          -
            plug-attributes:
              content: $SLOT(content)
            slot-attributes:
              content: icon-themes
            slots-per-plug: *
    

The aim being to allow application snaps requiring theme data to connect to these snaps in parallel with the gtk-common-themes snap.

+1 from me for granting autoconnect for the both snaps following the same criteria used for MATE theme snaps. @jamesh is this request urgent or can wait for other reviewers to manifest?

Hey @scarlettmoore @jamesh

Sorry for the big delay in the response. +1 also from me for granting global auto-connection to gtk-theme-breeze and icon-theme-breeze snaps with greedy connection. This is now live.

Please let me know if everything works as expected